[py-svn] r8009 - py/dist/py/code
hpk at codespeak.net
hpk at codespeak.net
Thu Dec 30 13:03:13 CET 2004
Author: hpk
Date: Thu Dec 30 13:03:13 2004
New Revision: 8009
Modified:
py/dist/py/code/frame.py
Log:
read source code with universal newline support
Modified: py/dist/py/code/frame.py
==============================================================================
--- py/dist/py/code/frame.py (original)
+++ py/dist/py/code/frame.py Thu Dec 30 13:03:13 2004
@@ -16,7 +16,7 @@
try:
return fn.__source__
except AttributeError:
- return py.code.Source(self.path.read())
+ return py.code.Source(self.path.read(mode="rU"))
fullsource = property(fullsource, None, None,
"full source containing this code object")
More information about the pytest-commit
mailing list