8000 Merge remote-tracking branch 'origin/main' into main · unixjazz/circuitpython@68aa770 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68aa770

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents e7f0847 + fa485aa commit 68aa770

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

py/makeqstrdata.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ def compute_huffman_coding(translations, compression_filename):
419419

420420
print("//", values, lengths)
421421
values = [(atom if len(atom) == 1 else chr(0x80 + words.index(atom))) for atom in values]
422-
print("//", values, lengths)
423422
max_translation_encoded_length = max(
424423
len(translation.encode("utf-8")) for (original, translation) in translations
425424
)

tools/gen_display_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
parser.add_argument("--extra_characters", type=str, help="Unicode string of extra characters")
1919
parser.add_argument(
2020
"--sample_file",
21-
type=argparse.FileType("r"),
21+
type=argparse.FileType("r", encoding="utf-8"),
2222
help="Text file that includes strings to support.",
2323
)
2424
parser.add_argument("--output_c_file", type=argparse.FileType("w"), required=True)

0 commit comments

Comments
 (0)
0