From: Michael W. Hudson Date: Mon, 11 Oct 2004 15:34:31 +0000 (+0000) Subject: Open source files in universal newlines mode. X-Git-Tag: v2.4b1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29589a06f6fb8298239c26334992d8471ad6f93a;p=python Open source files in universal newlines mode. --- diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 183efb50ab..e51bc4278d 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: