From 76128c304d0397b0956a21ffc649a9ef8c444e63 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 12 Jul 2019 16:28:58 -0700 Subject: Update unicode scripts for the current coding style --- src/libcore/unicode/printable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libcore/unicode/printable.py') diff --git a/src/libcore/unicode/printable.py b/src/libcore/unicode/printable.py index 1288a784123..748917f1d34 100644 --- a/src/libcore/unicode/printable.py +++ b/src/libcore/unicode/printable.py @@ -111,17 +111,17 @@ def compress_normal(normal): return compressed def print_singletons(uppers, lowers, uppersname, lowersname): - print("const {}: &'static [(u8, u8)] = &[".format(uppersname)) + print("const {}: &[(u8, u8)] = &[".format(uppersname)) for u, c in uppers: print(" ({:#04x}, {}),".format(u, c)) print("];") - print("const {}: &'static [u8] = &[".format(lowersname)) + print("const {}: &[u8] = &[".format(lowersname)) for i in range(0, len(lowers), 8): print(" {}".format(" ".join("{:#04x},".format(l) for l in lowers[i:i+8]))) print("];") def print_normal(normal, normalname): - print("const {}: &'static [u8] = &[".format(normalname)) + print("const {}: &[u8] = &[".format(normalname)) for v in normal: print(" {}".format(" ".join("{:#04x},".format(i) for i in v))) print("];") -- cgit 1.4.1-3-g733a5