diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-10-17 23:15:10 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-10-18 14:54:32 -0300 |
commit | 2a7cc2e7ad1aaff6ccb4d8b6ac5de0bc0121d6ee (patch) | |
tree | b79fd46a483311c877a3febc0f388ff6baf3f301 /contrib/sort.py | |
parent | sort.py: simplify "checking" message code (diff) | |
download | firejail-2a7cc2e7ad1aaff6ccb4d8b6ac5de0bc0121d6ee.tar.gz firejail-2a7cc2e7ad1aaff6ccb4d8b6ac5de0bc0121d6ee.tar.zst firejail-2a7cc2e7ad1aaff6ccb4d8b6ac5de0bc0121d6ee.zip |
sort.py: rename raw_items to original_items
To make it clearer.
Both the input and output of the sort_alphabetical function are strings
of comma-separated items, so there is no format conversion of any kind
being done (from "raw" to "not raw"), only sorting.
Diffstat (limited to 'contrib/sort.py')
-rwxr-xr-x | contrib/sort.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/sort.py b/contrib/sort.py index ca43e5bd5..8f42e9e5c 100755 --- a/contrib/sort.py +++ b/contrib/sort.py | |||
@@ -27,8 +27,8 @@ Exit-Codes: | |||
27 | from sys import argv, exit as sys_exit | 27 | from sys import argv, exit as sys_exit |
28 | 28 | ||
29 | 29 | ||
30 | def sort_alphabetical(raw_items): | 30 | def sort_alphabetical(original_items): |
31 | items = raw_items.split(",") | 31 | items = original_items.split(",") |
32 | items.sort(key=str.casefold) | 32 | items.sort(key=str.casefold) |
33 | return ",".join(items) | 33 | return ",".join(items) |
34 | 34 | ||