aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDamien George2020-08-29 15:14:29 +1000
committerDamien George2020-08-29 15:18:01 +1000
commit06659077a81b85882254cf0953c33b27614e018e (patch)
treef0463060ca6144a82b0e54ffc4f394c208d4d92c /tools
parent0c7354afaf91da3dac2c5ec471603c9e7acc8eac (diff)
all: Update Python code to conform to latest black formatting.
Updating to Black v20.8b1 there are two changes that affect the code in this repository: - If there is a trailing comma in a list (eg [], () or function call) then that list is now written out with one line per element. So remove such trailing commas where the list should stay on one line. - Spaces at the start of """ doc strings are removed. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mpy_ld.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpy_ld.py b/tools/mpy_ld.py
index 32bc176cb..774966a7f 100755
--- a/tools/mpy_ld.py
+++ b/tools/mpy_ld.py
@@ -908,7 +908,7 @@ def build_mpy(env, entry_offset, fmpy, native_qstr_vals, native_qstr_objs):
# MPY: header
out.write_bytes(
bytearray(
- [ord("M"), MPY_VERSION, env.arch.mpy_feature, MP_SMALL_INT_BITS, QSTR_WINDOW_SIZE,]
+ [ord("M"), MPY_VERSION, env.arch.mpy_feature, MP_SMALL_INT_BITS, QSTR_WINDOW_SIZE]
)
)