[Python-checkins] r68493 - python/trunk/Tools/scripts/patchcheck.py
benjamin.peterson
python-checkins at python.org
Sat Jan 10 18:18:55 CET 2009
Author: benjamin.peterson
Date: Sat Jan 10 18:18:55 2009
New Revision: 68493
Log:
rewrite verbose conditionals
Modified:
python/trunk/Tools/scripts/patchcheck.py
Modified: python/trunk/Tools/scripts/patchcheck.py
==============================================================================
--- python/trunk/Tools/scripts/patchcheck.py (original)
+++ python/trunk/Tools/scripts/patchcheck.py Sat Jan 10 18:18:55 2009
@@ -62,12 +62,12 @@
@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():
More information about the Python-checkins
mailing list