[Python-checkins] r78861 - python/branches/py3k/Doc/tools/rstlint.py
georg.brandl
python-checkins at python.org
Fri Mar 12 11:04:37 CET 2010
Author: georg.brandl
Date: Fri Mar 12 11:04:37 2010
New Revision: 78861
Log:
Make tool compatible with 2.x and 3.x.
Modified:
python/branches/py3k/Doc/tools/rstlint.py
Modified: python/branches/py3k/Doc/tools/rstlint.py
==============================================================================
--- python/branches/py3k/Doc/tools/rstlint.py (original)
+++ python/branches/py3k/Doc/tools/rstlint.py Fri Mar 12 11:04:37 2010
@@ -169,7 +169,6 @@
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 @@
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()
More information about the Python-checkins
mailing list