code format
This commit is contained in:
parent
2ce9dc7680
commit
577358ae99
@ -17,6 +17,7 @@ if DEBUG:
|
|||||||
def dprint(*v):
|
def dprint(*v):
|
||||||
print(*v)
|
print(*v)
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def dprint(*v):
|
def dprint(*v):
|
||||||
|
@ -83,6 +83,7 @@ if "length" in inspect.getfullargspec(usb.util.get_string).args:
|
|||||||
def get_string(dev, index):
|
def get_string(dev, index):
|
||||||
return usb.util.get_string(dev, 255, index)
|
return usb.util.get_string(dev, 255, index)
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# PyUSB 1.0.0.b2 dropped the length argument
|
# PyUSB 1.0.0.b2 dropped the length argument
|
||||||
def get_string(dev, index):
|
def get_string(dev, index):
|
||||||
|
Loading…
Reference in New Issue
Block a user