diff options
author | Seth Morton <seth.m.morton@gmail.com> | 2019-11-13 11:51:06 -0800 |
---|---|---|
committer | Seth Morton <seth.m.morton@gmail.com> | 2019-11-13 11:51:06 -0800 |
commit | 7c9d01545a9cfd9ac3c0485183cb6ed9ec956837 (patch) | |
tree | 17a5055dda6f4ffe8da921f83fc2e59bec2486cc /natsort/unicode_numeric_hex.py | |
parent | 60b86c3b6ee63112da3cc866982278b08b86a3ee (diff) | |
download | natsort-7c9d01545a9cfd9ac3c0485183cb6ed9ec956837.tar.gz |
Re-remove Python 2.7 support.
Diffstat (limited to 'natsort/unicode_numeric_hex.py')
-rw-r--r-- | natsort/unicode_numeric_hex.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/natsort/unicode_numeric_hex.py b/natsort/unicode_numeric_hex.py index 991d3e3..92aecf1 100644 --- a/natsort/unicode_numeric_hex.py +++ b/natsort/unicode_numeric_hex.py @@ -1836,12 +1836,11 @@ numeric_hex = ( # Some code that can be used to create the above list of hex numbers. if __name__ == "__main__": import unicodedata - from natsort.compat.py23 import py23_range, py23_unichr hex_chars = [] - for i in py23_range(0x110000): + for i in range(0x110000): try: - a = py23_unichr(i) + a = chr(i) except ValueError: break if a in "0123456789": |