aboutsummaryrefslogtreecommitdiff
path: root/nxt-python-fantom/nxt/usbsock.py
diff options
context:
space:
mode:
authorTC Wan2011-04-27 15:21:17 +0800
committerTC Wan2011-04-27 15:21:17 +0800
commit0bf5f4efbea18e4402814f8cacd79967a4257e50 (patch)
treeac9f491ae38adb9cbcb02e212f32fd16b020092f /nxt-python-fantom/nxt/usbsock.py
parenta5cf3be2fd6c279c2a59e229915c4461bbd060cb (diff)
wip pyfantom support
Some minor cleanups for pyfantom support
Diffstat (limited to 'nxt-python-fantom/nxt/usbsock.py')
-rw-r--r--nxt-python-fantom/nxt/usbsock.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nxt-python-fantom/nxt/usbsock.py b/nxt-python-fantom/nxt/usbsock.py
index 3e2ed58..78c21ab 100644
--- a/nxt-python-fantom/nxt/usbsock.py
+++ b/nxt-python-fantom/nxt/usbsock.py
@@ -29,8 +29,7 @@ class USBSock(object):
self.debug = False
def __str__(self):
- # FIXME: This breaks encapsulation
- return 'USB (%s)' % (self.sock.filename)
+ return 'USB (%s)' % (self.sock.device_name())
def connect(self):
'Use to connect to NXT.'