diff options
Diffstat (limited to 'natsort')
-rw-r--r-- | natsort/natsort.py | 2 | ||||
-rw-r--r-- | natsort/utils.py | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/natsort/natsort.py b/natsort/natsort.py index 3904ec5..ea83e48 100644 --- a/natsort/natsort.py +++ b/natsort/natsort.py @@ -677,7 +677,6 @@ def _split_apply( # Choose the implementation based on the host OS if platform.system() == "Windows": - from ctypes import wintypes, windll # type: ignore from functools import cmp_to_key @@ -695,7 +694,6 @@ if platform.system() == "Windows": ) else: - # For UNIX-based platforms, ICU performs MUCH better than locale # at replicating the file explorer's sort order. We will use # ICU's ability to do basic natural sorting as it also better diff --git a/natsort/utils.py b/natsort/utils.py index 1e38bec..36cb436 100644 --- a/natsort/utils.py +++ b/natsort/utils.py @@ -341,7 +341,6 @@ def natsort_key( try: return string_func(cast(str, val)) except (TypeError, AttributeError): - # If bytes type, use the bytes_func if type(val) in (bytes,): return bytes_func(cast(bytes, val)) |