We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b2ade commit 89f6898Copy full SHA for 89f6898
src/borg/helpers/parseformat.py
@@ -351,9 +351,9 @@ def FilesystemPathSpec(text):
351
def SortBySpec(text):
352
from ..manifest import AI_HUMAN_SORT_KEYS
353
354
- for token in text.split(","):
355
- if token not in AI_HUMAN_SORT_KEYS and token != "ts": # idempotency: do not reject ts
356
- raise argparse.ArgumentTypeError("Invalid sort key: %s" % token)
+ for sort_key in text.split(","):
+ if sort_key not in AI_HUMAN_SORT_KEYS and sort_key != "ts": # idempotency: do not reject ts
+ raise argparse.ArgumentTypeError("Invalid sort key: %s" % sort_key)
357
return text.replace("timestamp", "ts").replace("archive", "name")
358
359
0 commit comments