summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2023-02-26 21:10:48 -0800
committerSeth Morton <seth.m.morton@gmail.com>2023-02-26 21:10:48 -0800
commit25fa2db8a7b04da596ebd95a170f69e29c2ace54 (patch)
tree84cc467ac1f12855cbc8a264dc4d4ebc88b9ad1a
parent90fd249a81a2e343d30de19b1671080597bce084 (diff)
downloadnatsort-25fa2db8a7b04da596ebd95a170f69e29c2ace54.tar.gz
black
-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)