From 420ca77e7340d0cc33ba0dc0afc36b42560b0104 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 12 Mar 2010 10:04:37 +0000 Subject: Make tool compatible with 2.x and 3.x. --- Doc/tools/rstlint.py | 4 +--- 1 file changed, 1 insertion(+), 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() -- cgit v0.12