mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Open the source file in universal newline mode.
This commit is contained in:
parent
f7ce04dcb4
commit
5d0990494e
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ def process(template, filename, destname, copy_codefragment,
|
|||
# Read the source and compile it
|
||||
# (there's no point overwriting the destination if it has a syntax error)
|
||||
|
||||
fp = open(filename)
|
||||
fp = open(filename, 'rU')
|
||||
text = fp.read()
|
||||
fp.close()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue