diff options
Diffstat (limited to 'tests/profile_natsorted.py')
-rw-r--r-- | tests/profile_natsorted.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/profile_natsorted.py b/tests/profile_natsorted.py index ec7037f..a2b1a5c 100644 --- a/tests/profile_natsorted.py +++ b/tests/profile_natsorted.py @@ -3,7 +3,6 @@ This file contains functions to profile natsorted with different inputs and different settings. """ -from __future__ import print_function import cProfile import locale @@ -11,11 +10,9 @@ import sys try: from natsort import ns, natsort_keygen - from natsort.compat.py23 import py23_range except ImportError: sys.path.insert(0, ".") from natsort import ns, natsort_keygen - from natsort.compat.py23 import py23_range locale.setlocale(locale.LC_ALL, "en_US.UTF-8") @@ -37,7 +34,7 @@ locale_key = natsort_keygen(alg=ns.LOCALE) def prof_time_to_generate(): print("*** Generate Plain Key ***") - for _ in py23_range(100000): + for _ in range(100000): natsort_keygen() @@ -46,7 +43,7 @@ cProfile.run("prof_time_to_generate()", sort="time") def prof_parsing(a, msg, key=basic_key): print(msg) - for _ in py23_range(100000): + for _ in range(100000): key(a) |