diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2011-07-29 13:32:25 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2011-07-29 13:32:25 (GMT) |
commit | 947fed42b8f1eb6c1b7cc9dec4e51db589d76bd8 (patch) | |
tree | 0e2d7eab86a99d9412c9bafc5b678029bf9c1351 /Tools/scripts | |
parent | 30e277bf729f1b16d219195c651be3bd0ef8b5c1 (diff) | |
parent | 47891044c9422adce3658182d0acd608d9d3c3d6 (diff) | |
download | cpython-947fed42b8f1eb6c1b7cc9dec4e51db589d76bd8.zip cpython-947fed42b8f1eb6c1b7cc9dec4e51db589d76bd8.tar.gz cpython-947fed42b8f1eb6c1b7cc9dec4e51db589d76bd8.tar.bz2 |
Merge fix for reindent.py
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/reindent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/reindent.py b/Tools/scripts/reindent.py index ed66bc1..89b5e23 100755 --- a/Tools/scripts/reindent.py +++ b/Tools/scripts/reindent.py @@ -52,6 +52,8 @@ verbose = False recurse = False dryrun = False makebackup = True +"A specified newline to be used in the output (set by --newline option)" +spec_newline = None def usage(msg=None): @@ -64,11 +66,9 @@ def errprint(*args): sys.stderr.write(" ".join(str(arg) for arg in args)) sys.stderr.write("\n") - def main(): import getopt global verbose, recurse, dryrun, makebackup, spec_newline - spec_newline = None try: opts, args = getopt.getopt(sys.argv[1:], "drnvh", ["dryrun", "recurse", "nobackup", "verbose", "newline=", "help"]) |