From dd72051929123571eb5b8b5c7dd65f231d4ec5b2 Mon Sep 17 00:00:00 2001 From: Robyn Speer Date: Tue, 5 Feb 2019 11:16:22 -0500 Subject: [PATCH] update msgpack call in scripts/make_chinese_mapping --- scripts/make_chinese_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make_chinese_mapping.py b/scripts/make_chinese_mapping.py index 4a17d4f..3d78708 100644 --- a/scripts/make_chinese_mapping.py +++ b/scripts/make_chinese_mapping.py @@ -36,7 +36,7 @@ def make_hanzi_converter(table_in, msgpack_out): if chr(codept) != char: table[codept] = char with gzip.open(msgpack_out, 'wb') as outfile: - msgpack.dump(table, outfile, encoding='utf-8') + msgpack.dump(table, outfile, raw=False) def build():