mirror of
https://github.com/google/brotli.git
synced 2024-12-28 18:51:08 +00:00
unichr was removed in Python 3 because all str are Unicode (#877)
https://python-future.org/compatible_idioms.html#unichr
This commit is contained in:
parent
2a51a85aa8
commit
63be8a9940
@ -15,6 +15,11 @@
|
||||
#
|
||||
# This script generates literals used in Java code.
|
||||
|
||||
try:
|
||||
unichr # Python 2
|
||||
except NameError
|
||||
unichr = chr # Python 3
|
||||
|
||||
bin_path = "dictionary.bin"
|
||||
|
||||
with open(bin_path, "rb") as raw:
|
||||
|
Loading…
Reference in New Issue
Block a user