diff --git a/scripts/generate_unicode_confusables_data.py b/scripts/generate_unicode_confusables_data.py index bd483dc64..73936b7b7 100644 --- a/scripts/generate_unicode_confusables_data.py +++ b/scripts/generate_unicode_confusables_data.py @@ -8,8 +8,8 @@ # python3 scripts/generate_unicode_confusables_data.py header > `src/base/unicode/confusables.h`, # python3 scripts/generate_unicode_confusables_data.py data > `src/base/unicode/confusables_data.h`. -import unicode import sys +import unicode def generate_decompositions(): ud = unicode.data() @@ -126,10 +126,9 @@ def main(): data = "data" in sys.argv if header: - gen_header(decompositions, len_set) + gen_header(decompositions, len_set) elif data: - gen_data(decompositions, decomposition_set, decomposition_offsets, len_set) + gen_data(decompositions, decomposition_set, decomposition_offsets, len_set) if __name__ == '__main__': main() - diff --git a/scripts/generate_unicode_tolower.py b/scripts/generate_unicode_tolower.py index f58e4a234..c65d83bda 100644 --- a/scripts/generate_unicode_tolower.py +++ b/scripts/generate_unicode_tolower.py @@ -7,8 +7,8 @@ # python3 scripts/generate_unicode_tolower.py header > `src/base/unicode/tolower.h`, # python3 scripts/generate_unicode_tolower.py data > `src/base/unicode/tolower_data.h`. -import unicode import sys +import unicode def generate_cases(): ud = unicode.data()