Add Tools/scripts/patchcheck.py. Invoked from `make check`, the script does

some verification:

- Runs reindent.py on all .py files.
- Checks if any changes in Doc exist.
- Whether Misc/ACKS was changed.
- Whether Misc/NEWS was changed.

The hope is that ``make check`` can become a command anybody can run to get
reminders about what all the requisite steps needed to create a proper
patch/checkin.
This commit is contained in:
Brett Cannon 2008-03-18 17:25:13 +00:00
parent 493894c3e0
commit a8b09fd4c3
3 changed files with 96 additions and 0 deletions

View file

@ -130,9 +130,11 @@ def check(file):
f.close()
if verbose:
print "wrote new", file
return True
else:
if verbose:
print "unchanged."
return False
def _rstrip(line, JUNK='\n \t'):
"""Return line stripped of trailing spaces, tabs, newlines.