all: Update Python formatting to latest Black version 21.12b0.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2021-12-08 16:40:08 +11:00 committed by Damien George
parent b491967bbd
commit 3770fab334
4 changed files with 0 additions and 4 deletions

View File

@ -57,6 +57,5 @@ try:
yield core._io_queue.queue_read(self) yield core._io_queue.queue_read(self)
self._flag = 0 self._flag = 0
except ImportError: except ImportError:
pass pass

View File

@ -17,7 +17,6 @@ if platform.python_version_tuple()[0] == "2":
def convert_bytes_to_str(b): def convert_bytes_to_str(b):
return b return b
elif platform.python_version_tuple()[0] == "3": elif platform.python_version_tuple()[0] == "3":
def convert_bytes_to_str(b): def convert_bytes_to_str(b):

View File

@ -17,7 +17,6 @@ if DEBUG:
def dprint(*v): def dprint(*v):
print(*v) print(*v)
else: else:
def dprint(*v): def dprint(*v):

View File

@ -84,7 +84,6 @@ if "length" in getargspec(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):