Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/untabify.py @ 65570:2e19d1f4b612
#9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Thu, 21 Oct 2010 12:49:28 +0000 |
| parents | 5ae390ac6c61 |
| children | 2f6d0f361ab9 |
line wrap: on
line diff
--- a/Tools/scripts/untabify.py Thu Oct 21 07:40:03 2010 +0000 +++ b/Tools/scripts/untabify.py Thu Oct 21 12:49:28 2010 +0000 @@ -25,7 +25,7 @@ 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 @@ pass with open(filename, "w") as f: f.write(newtext) - print(filename) + if verbose: + print(filename) if __name__ == '__main__':
