1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

udp: fix __str__ method and allow simple enumeration

This commit is contained in:
Roman Zeyde 2017-12-21 21:13:13 +02:00 committed by Pavol Rusnak
parent f8a277dfba
commit 31c4836073

View File

@ -52,11 +52,11 @@ class UdpTransport(Transport):
self.socket = None
def __str__(self):
return self.device
return str(self.device)
@staticmethod
def enumerate():
raise NotImplementedError('This transport cannot enumerate devices')
return [UdpTransport()]
@staticmethod
def find_by_path(path=None):