Open source files in universal newlines mode.

This commit is contained in:
Michael W. Hudson 2004-10-11 15:34:31 +00:00
parent 418de1f23c
commit 29589a06f6

View file

@ -24,7 +24,7 @@ class CompilerTest(unittest.TestCase):
path = os.path.join(dir, basename) path = os.path.join(dir, basename)
if test.test_support.verbose: if test.test_support.verbose:
print "compiling", path print "compiling", path
f = open(path) f = open(path, "U")
buf = f.read() buf = f.read()
f.close() f.close()
if "badsyntax" in basename: if "badsyntax" in basename: