diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dictionary/step-04-generate-java-literals.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/dictionary/step-04-generate-java-literals.py b/scripts/dictionary/step-04-generate-java-literals.py index fd3c64e..c235f25 100644 --- a/scripts/dictionary/step-04-generate-java-literals.py +++ b/scripts/dictionary/step-04-generate-java-literals.py @@ -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: |