diff options
author | Georg Brandl <georg@python.org> | 2010-03-12 10:04:37 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-03-12 10:04:37 (GMT) |
commit | 420ca77e7340d0cc33ba0dc0afc36b42560b0104 (patch) | |
tree | 34e38e0ad546f694dd508ef990d495bc59f7ed0e /Doc/tools | |
parent | 25bfc55afe4105de313b50a00b12c4987d6308c2 (diff) | |
download | cpython-420ca77e7340d0cc33ba0dc0afc36b42560b0104.zip cpython-420ca77e7340d0cc33ba0dc0afc36b42560b0104.tar.gz cpython-420ca77e7340d0cc33ba0dc0afc36b42560b0104.tar.bz2 |
Make tool compatible with 2.x and 3.x.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-x | Doc/tools/rstlint.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 8e6b374..2cc3d12 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -169,7 +169,6 @@ Options: -v verbose (print all checked file names) return 2 count = defaultdict(int) - out = sys.stdout for root, dirs, files in os.walk(path): # ignore subdirs controlled by svn @@ -212,8 +211,7 @@ Options: -v verbose (print all checked file names) csev = checker.severity if csev >= severity: for lno, msg in checker(fn, lines): - print('[%d] %s:%d: %s' % (csev, fn, lno, msg), - file=out) + print('[%d] %s:%d: %s' % (csev, fn, lno, msg)) count[csev] += 1 if verbose: print() |