udp: fix __str__ method and allow simple enumeration

pull/25/head
Roman Zeyde 7 years ago committed by Pavol Rusnak
parent f8a277dfba
commit 31c4836073

@ -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):

Loading…
Cancel
Save