mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.
This commit is contained in:
parent
50de5f56a9
commit
a9afb68789
3 changed files with 68 additions and 33 deletions
|
@ -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__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue