diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-10-18 00:00:03 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-10-18 14:54:32 -0300 |
commit | b9c2843111cd208ef40b2683e64edd2d6059c28f (patch) | |
tree | 86ba67dc8f435575f14de27fa2c5847918d9f658 /contrib/sort.py | |
parent | sort.py: pass the str.casefold function directly (diff) | |
download | firejail-b9c2843111cd208ef40b2683e64edd2d6059c28f.tar.gz firejail-b9c2843111cd208ef40b2683e64edd2d6059c28f.tar.zst firejail-b9c2843111cd208ef40b2683e64edd2d6059c28f.zip |
sort.py: simplify "checking" message code
Which also makes it fit in under 80 characters.
Always print "profile(s)" instead of changing the message based on the
argument count.
Diffstat (limited to 'contrib/sort.py')
-rwxr-xr-x | contrib/sort.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/sort.py b/contrib/sort.py index 9ce57802e..ca43e5bd5 100755 --- a/contrib/sort.py +++ b/contrib/sort.py | |||
@@ -85,7 +85,7 @@ def fix_profile(filename): | |||
85 | 85 | ||
86 | def main(args): | 86 | def main(args): |
87 | exit_code = 0 | 87 | exit_code = 0 |
88 | print(f"sort.py: checking {len(args)} {'profiles' if len(args) != 1 else 'profile'}...") | 88 | print(f"sort.py: checking {len(args)} profile(s)...") |
89 | for filename in args: | 89 | for filename in args: |
90 | try: | 90 | try: |
91 | if exit_code not in (1, 101): | 91 | if exit_code not in (1, 101): |