From: Benjamin Peterson Date: Sat, 10 Jan 2009 17:18:55 +0000 (+0000) Subject: rewrite verbose conditionals X-Git-Tag: v2.7a1~2336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eee9583065ec887175fddddfd2292a438f475631;p=thirdparty%2FPython%2Fcpython.git rewrite verbose conditionals --- diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py index cc177e7aad0d..e194c98cb04b 100644 --- a/Tools/scripts/patchcheck.py +++ b/Tools/scripts/patchcheck.py @@ -62,12 +62,12 @@ def docs_modified(file_paths): @status("Misc/ACKS updated", modal=True) def credit_given(file_paths): """Check if Misc/ACKS has been changed.""" - return True if 'Misc/ACKS' in file_paths else False + return 'Misc/ACKS' in file_paths @status("Misc/NEWS updated", modal=True) def reported_news(file_paths): """Check if Misc/NEWS has been changed.""" - return True if 'Misc/NEWS' in file_paths else False + return 'Misc/NEWS' in file_paths def main():