From c213c4b39b8fff1f6ba9bb4e4220d1e1308f5ba8 Mon Sep 17 00:00:00 2001 From: Jesse Nusbaumer Date: Mon, 9 Oct 2023 13:17:53 -0600 Subject: [PATCH] Make if-statement more pythonic. --- .github/scripts/pr_mod_file_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/pr_mod_file_tests.py b/.github/scripts/pr_mod_file_tests.py index 6c6eedfe..416c86f5 100755 --- a/.github/scripts/pr_mod_file_tests.py +++ b/.github/scripts/pr_mod_file_tests.py @@ -200,7 +200,7 @@ def _main_prog(): #Don't analyze 'manage_externals' files, #as they are an external repo and thus #not our responsibility: - if not 'manage_externals' in file_obj.filename: + if 'manage_externals' not in file_obj.filename: #Check if it is a python file: if _file_is_python(file_obj.filename):