Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 420ca77

Browse files
committed
Make tool compatible with 2.x and 3.x.
1 parent 25bfc55 commit 420ca77

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Doc/tools/rstlint.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ def main(argv):
169169
return 2
170170

171171
count = defaultdict(int)
172-
out = sys.stdout
173172

174173
for root, dirs, files in os.walk(path):
175174
# ignore subdirs controlled by svn
@@ -212,8 +211,7 @@ def main(argv):
212211
csev = checker.severity
213212
if csev >= severity:
214213
for lno, msg in checker(fn, lines):
215-
print('[%d] %s:%d: %s' % (csev, fn, lno, msg),
216-
file=out)
214+
print('[%d] %s:%d: %s' % (csev, fn, lno, msg))
217215
count[csev] += 1
218216
if verbose:
219217
print()

0 commit comments

Comments
 (0)