#9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.

This commit is contained in:
Georg Brandl 2010-10-21 12:49:28 +00:00
parent 50de5f56a9
commit a9afb68789
3 changed files with 68 additions and 33 deletions

View file

@ -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__':