Skip to content

Commit 032dd29

Browse files
committed
PyUpgrade comprehension changes
1 parent 75118f8 commit 032dd29

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pre_commit_hooks/check_autopkg_recipe_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main(argv=None):
7272
print(f"{filename}: invalid recipe list")
7373
retval = 1
7474
else:
75-
if any((".munki" in recipe for recipe in recipe_list)):
75+
if any(".munki" in recipe for recipe in recipe_list):
7676
if "MakeCatalogs" not in recipe_list[-1]:
7777
print("{}: MakeCatalogs should be the last item in the list")
7878
retval = 1

pre_commit_hooks/check_git_config_email.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def main(argv=None):
4242
print("Git config email does not look like an email address.")
4343
print("Git config email: " + user_email)
4444
retval = 1
45-
elif not any((user_email.endswith("@" + x) for x in args.domains)):
45+
elif not any(user_email.endswith("@" + x) for x in args.domains):
4646
print("Git config email is from an unexpected domain.")
4747
print("Git config email: " + user_email)
4848
print("Expected domains: " + str(args.domains))

0 commit comments

Comments
 (0)