[Python-checkins] python/dist/src/Lib trace.py,1.20,1.21
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Thu Apr 15 23:28:21 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24026
Modified Files:
trace.py
Log Message:
Open file in universal newline mode when passing to compile(). Solution
from Felix Wiemann. Closes patch #934971.
Index: trace.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/trace.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** trace.py 10 Apr 2004 16:29:58 -0000 1.20
--- trace.py 16 Apr 2004 03:28:19 -0000 1.21
***************
*** 419,423 ****
assert filename.endswith('.py')
try:
! prog = open(filename).read()
except IOError, err:
print >> sys.stderr, ("Not printing coverage data for %r: %s"
--- 419,423 ----
assert filename.endswith('.py')
try:
! prog = open(filename, "rU").read()
except IOError, err:
print >> sys.stderr, ("Not printing coverage data for %r: %s"
More information about the Python-checkins
mailing list