Skip to content

Commit 4a1479f

Browse files
author
benjamin.peterson
committed
rewrite verbose conditionals
git-svn-id: http://svn.python.org/projects/python/trunk@68493 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent df53830 commit 4a1479f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/scripts/patchcheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ def docs_modified(file_paths):
6262
@status("Misc/ACKS updated", modal=True)
6363
def credit_given(file_paths):
6464
"""Check if Misc/ACKS has been changed."""
65-
return True if 'Misc/ACKS' in file_paths else False
65+
return 'Misc/ACKS' in file_paths
6666

6767
@status("Misc/NEWS updated", modal=True)
6868
def reported_news(file_paths):
6969
"""Check if Misc/NEWS has been changed."""
70-
return True if 'Misc/NEWS' in file_paths else False
70+
return 'Misc/NEWS' in file_paths
7171

7272

7373
def main():

0 commit comments

Comments
 (0)