diff options
| author | Jeff Epler <jeff@adafruit.com> | 2020-08-18 10:58:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 10:58:23 -0500 |
| commit | 6136ca38d1339c679240deff5df406f83c940d13 (patch) | |
| tree | 282ae6f7e5a1d97318cbdc440351ad32998252ef | |
| parent | c08fc93d160ad1c420b6175e7dd391e3d1b23d50 (diff) | |
| parent | 79a3796b1cd74b376e091e63c1b3a2426ec3187c (diff) | |
Merge pull request #3298 from ciscorn/huffman-src
Calculate the Huffman codebook without MP_QSTRs
| -rw-r--r-- | py/makeqstrdata.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index 6132298a5..04c893876 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py @@ -102,10 +102,6 @@ def translate(translation_file, i18ns): def compute_huffman_coding(translations, qstrs, compression_filename): all_strings = [x[1] for x in translations] - - # go through each qstr and print it out - for _, _, qstr in qstrs.values(): - all_strings.append(qstr) all_strings_concat = "".join(all_strings) counts = collections.Counter(all_strings_concat) cb = huffman.codebook(counts.items()) |
