summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/untabify.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-21 12:49:28 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-21 12:49:28 (GMT)
commita9afb68789cdc2d8d3262afc2ffa209b5d8e224a (patch)
treef96d010bac97f838068291b4c0ef1f3de9bb0e50 /Tools/scripts/untabify.py
parent50de5f56a9eba0e0da6fb48c22b85ee69daac105 (diff)
downloadcpython-a9afb68789cdc2d8d3262afc2ffa209b5d8e224a.zip
cpython-a9afb68789cdc2d8d3262afc2ffa209b5d8e224a.tar.gz
cpython-a9afb68789cdc2d8d3262afc2ffa209b5d8e224a.tar.bz2
#9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.
Diffstat (limited to 'Tools/scripts/untabify.py')
-rwxr-xr-xTools/scripts/untabify.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/scripts/untabify.py b/Tools/scripts/untabify.py
index 1ad589c..ef63c41 100755
--- a/Tools/scripts/untabify.py
+++ b/Tools/scripts/untabify.py
@@ -25,7 +25,7 @@ def main():
process(filename, tabsize)
-def process(filename, tabsize):
+def process(filename, tabsize, verbose=True):
try:
with open(filename) as f:
text = f.read()
@@ -46,7 +46,8 @@ def process(filename, tabsize):
pass
with open(filename, "w") as f:
f.write(newtext)
- print(filename)
+ if verbose:
+ print(filename)
if __name__ == '__main__':