From b9c2843111cd208ef40b2683e64edd2d6059c28f Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Tue, 18 Oct 2022 00:00:03 -0300 Subject: 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. --- contrib/sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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): def main(args): exit_code = 0 - print(f"sort.py: checking {len(args)} {'profiles' if len(args) != 1 else 'profile'}...") + print(f"sort.py: checking {len(args)} profile(s)...") for filename in args: try: if exit_code not in (1, 101): -- cgit v1.2.3-54-g00ecf