summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-10 17:18:55 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-01-10 17:18:55 (GMT)
commiteee9583065ec887175fddddfd2292a438f475631 (patch)
tree5c909c3666fe03adca5e9edafb044b4b4ee1674f /Tools
parent43723e2ad81599b54172a5dcc48790e51ff64f5f (diff)
downloadcpython-eee9583065ec887175fddddfd2292a438f475631.zip
cpython-eee9583065ec887175fddddfd2292a438f475631.tar.gz
cpython-eee9583065ec887175fddddfd2292a438f475631.tar.bz2
rewrite verbose conditionals
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/patchcheck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py
index cc177e7..e194c98 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():