summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-10-11 15:34:31 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-10-11 15:34:31 (GMT)
commit29589a06f6fb8298239c26334992d8471ad6f93a (patch)
tree7ae2deb6d300bb727ebb26acf92fada332089ad3
parent418de1f23c2a17bd6d4d6b00500d5017e3fe9634 (diff)
downloadcpython-29589a06f6fb8298239c26334992d8471ad6f93a.zip
cpython-29589a06f6fb8298239c26334992d8471ad6f93a.tar.gz
cpython-29589a06f6fb8298239c26334992d8471ad6f93a.tar.bz2
Open source files in universal newlines mode.
-rw-r--r--Lib/test/test_compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index 183efb5..e51bc42 100644
--- a/Lib/test/test_compiler.py
+++ b/Lib/test/test_compiler.py
@@ -24,7 +24,7 @@ class CompilerTest(unittest.TestCase):
path = os.path.join(dir, basename)
if test.test_support.verbose:
print "compiling", path
- f = open(path)
+ f = open(path, "U")
buf = f.read()
f.close()
if "badsyntax" in basename: