summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2021-12-08 16:40:08 +1100
committerDamien George <damien@micropython.org>2021-12-09 12:09:40 +1100
commit3770fab33449a5dadf8eb06edfae0767e75320a6 (patch)
treeb4cc97a3450411ac2300aef20f5d4ae83748dd9d
parentb491967bbd99470632b783ee3bf91914aa692047 (diff)
all: Update Python formatting to latest Black version 21.12b0.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-rw-r--r--extmod/uasyncio/event.py1
-rw-r--r--ports/stm32/make-stmconst.py1
-rw-r--r--tests/extmod/utimeq1.py1
-rwxr-xr-xtools/pydfu.py1
4 files changed, 0 insertions, 4 deletions
diff --git a/extmod/uasyncio/event.py b/extmod/uasyncio/event.py
index c28ad1fb3..1954c80f5 100644
--- a/extmod/uasyncio/event.py
+++ b/extmod/uasyncio/event.py
@@ -57,6 +57,5 @@ try:
yield core._io_queue.queue_read(self)
self._flag = 0
-
except ImportError:
pass
diff --git a/ports/stm32/make-stmconst.py b/ports/stm32/make-stmconst.py
index 602bdc6c1..217a801a8 100644
--- a/ports/stm32/make-stmconst.py
+++ b/ports/stm32/make-stmconst.py
@@ -17,7 +17,6 @@ if platform.python_version_tuple()[0] == "2":
def convert_bytes_to_str(b):
return b
-
elif platform.python_version_tuple()[0] == "3":
def convert_bytes_to_str(b):
diff --git a/tests/extmod/utimeq1.py b/tests/extmod/utimeq1.py
index 234d7a31d..ddbc969af 100644
--- a/tests/extmod/utimeq1.py
+++ b/tests/extmod/utimeq1.py
@@ -17,7 +17,6 @@ if DEBUG:
def dprint(*v):
print(*v)
-
else:
def dprint(*v):
diff --git a/tools/pydfu.py b/tools/pydfu.py
index ea658d300..f2d845a70 100755
--- a/tools/pydfu.py
+++ b/tools/pydfu.py
@@ -84,7 +84,6 @@ if "length" in getargspec(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):