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:
Christian Clauss 2021-01-27 15:08:05 +01:00 committed by GitHub
parent 2a51a85aa8
commit 63be8a9940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: