mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Read the text files to be compared in universal-newline mode.
This commit is contained in:
parent
ab9b32c077
commit
130e37f3e2
3 changed files with 8 additions and 4 deletions
|
@ -60,7 +60,7 @@ def fail(msg):
|
|||
# couldn't be opened
|
||||
def fopen(fname):
|
||||
try:
|
||||
return open(fname, 'r')
|
||||
return open(fname, 'U')
|
||||
except IOError, detail:
|
||||
return fail("couldn't open " + fname + ": " + str(detail))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue