summaryrefslogtreecommitdiff
path: root/utils/reindent.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-10 22:18:18 +0100
committerGeorg Brandl <georg@python.org>2009-01-10 22:18:18 +0100
commitaedbdd953d4ea4129273294316c23780cda9cb3b (patch)
tree5044c2146ca4b1756136040d0b4365685b0c4f84 /utils/reindent.py
parentb068e9180365a5d74d4fb02b003d7a05f99ffac3 (diff)
downloadsphinx-git-aedbdd953d4ea4129273294316c23780cda9cb3b.tar.gz
Fix more line length and trailing whitespace.
Diffstat (limited to 'utils/reindent.py')
-rwxr-xr-xutils/reindent.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/reindent.py b/utils/reindent.py
index e6ee82872..c499f671e 100755
--- a/utils/reindent.py
+++ b/utils/reindent.py
@@ -8,7 +8,8 @@
-d (--dryrun) Dry run. Analyze, but don't make any changes to files.
-r (--recurse) Recurse. Search for all .py files in subdirectories too.
-B (--no-backup) Don't write .bak backup files.
--v (--verbose) Verbose. Print informative msgs; else only names of changed files.
+-v (--verbose) Verbose. Print informative msgs; else only names of \
+changed files.
-h (--help) Help. Print this usage information and exit.
Change Python (.py) files to use 4-space indents and no hard tab characters.
@@ -118,7 +119,8 @@ def check(file):
if dryrun:
print "But this is a dry run, so leaving it alone."
else:
- print "reindented", file, (dryrun and "(dry run => not really)" or "")
+ print "reindented", file, \
+ (dryrun and "(dry run => not really)" or "")
if not dryrun:
if not no_backup:
bak = file + ".bak"