mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 01:11:37 +00:00
update msgpack call in scripts/make_chinese_mapping
This commit is contained in:
parent
61a1604b38
commit
dd72051929
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user