summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--natsort/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/natsort/utils.py b/natsort/utils.py
index 733bb1b..062b1c6 100644
--- a/natsort/utils.py
+++ b/natsort/utils.py
@@ -344,8 +344,7 @@ def natsort_key(
elif isinstance(val, Iterable):
# Must be parsed recursively, but do not apply the key recursively.
return tuple(
- natsort_key(x, None, string_func, bytes_func, num_func)
- for x in val
+ natsort_key(x, None, string_func, bytes_func, num_func) for x in val
)
else: # Anything else goes here
return num_func(val)