diff options
Diffstat (limited to 'Doc/tools/rstlint.py')
-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() |