mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
Open source files in universal newlines mode.
This commit is contained in:
parent
418de1f23c
commit
29589a06f6
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue