From 577358ae99b45ae06ae7c07ba341165b2f58568e Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 20 Dec 2021 07:38:16 -0600 Subject: [PATCH] code format --- tests/extmod/utimeq1.py | 1 + tools/pydfu.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/extmod/utimeq1.py b/tests/extmod/utimeq1.py index ddbc969afb..234d7a31dd 100644 --- a/tests/extmod/utimeq1.py +++ b/tests/extmod/utimeq1.py @@ -17,6 +17,7 @@ if DEBUG: def dprint(*v): print(*v) + else: def dprint(*v): diff --git a/tools/pydfu.py b/tools/pydfu.py index ce34b08a58..26e40f5613 100755 --- a/tools/pydfu.py +++ b/tools/pydfu.py @@ -83,6 +83,7 @@ if "length" in inspect.getfullargspec(usb.util.get_string).args: def get_string(dev, index): return usb.util.get_string(dev, 255, index) + else: # PyUSB 1.0.0.b2 dropped the length argument def get_string(dev, index):