summaryrefslogtreecommitdiff
path: root/nxt-python-fantom/nxt/usbsock.py
diff options
context:
space:
mode:
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.'