]> granicus.if.org Git - python/commitdiff
Open source files in universal newlines mode.
authorMichael W. Hudson <mwh@python.net>
Mon, 11 Oct 2004 15:34:31 +0000 (15:34 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 11 Oct 2004 15:34:31 +0000 (15:34 +0000)
Lib/test/test_compiler.py

index 183efb50ab38ca5709eb4d6e1d7f9c710b291f8c..e51bc4278d91994e026337f0afc2aea40e7b7eb9 100644 (file)
@@ -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: