summaryrefslogtreecommitdiff
path: root/Tools/scripts/reindent.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-03-18 17:25:13 +0000
committerBrett Cannon <bcannon@gmail.com>2008-03-18 17:25:13 +0000
commita8b09fd4c33572a204a80c81e5755cc6d164805d (patch)
tree2175d5bca3bdc993c63a958831131bef4160f8de /Tools/scripts/reindent.py
parent493894c3e0abb9ec32f51f9c0630ddeee8a06719 (diff)
downloadcpython-git-a8b09fd4c33572a204a80c81e5755cc6d164805d.tar.gz
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.
Diffstat (limited to 'Tools/scripts/reindent.py')
-rwxr-xr-xTools/scripts/reindent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/scripts/reindent.py b/Tools/scripts/reindent.py
index 0805ef796f..65749f0be5 100755
--- a/Tools/scripts/reindent.py
+++ b/Tools/scripts/reindent.py
@@ -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.