mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
rewrite verbose conditionals
This commit is contained in:
parent
43723e2ad8
commit
eee9583065
1 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue