diff options
Diffstat (limited to 'natsort/compat/fake_fastnumbers.py')
-rw-r--r-- | natsort/compat/fake_fastnumbers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/natsort/compat/fake_fastnumbers.py b/natsort/compat/fake_fastnumbers.py index 7177551..570083f 100644 --- a/natsort/compat/fake_fastnumbers.py +++ b/natsort/compat/fake_fastnumbers.py @@ -10,7 +10,7 @@ import unicodedata # Local imports. from natsort.unicode_numbers import decimal_chars -NAN_INF = [ +_NAN_INF = [ "INF", "INf", "Inf", @@ -28,8 +28,8 @@ NAN_INF = [ "nAN", "Nan", ] -NAN_INF.extend(["+" + x[:2] for x in NAN_INF] + ["-" + x[:2] for x in NAN_INF]) -NAN_INF = frozenset(NAN_INF) +_NAN_INF.extend(["+" + x[:2] for x in _NAN_INF] + ["-" + x[:2] for x in _NAN_INF]) +NAN_INF = frozenset(_NAN_INF) ASCII_NUMS = "0123456789+-" POTENTIAL_FIRST_CHAR = frozenset(decimal_chars + list(ASCII_NUMS + ".")) |