summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-06-20 20:42:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-06-20 20:42:07 (GMT)
commit5d0990494e7397945385691d9a315b5fa7d64147 (patch)
tree2337b4879814385d6b8883296abd1410e8a39b06 /Mac/Lib
parentf7ce04dcb49e482ba31d25b819d5e933bf03fc4d (diff)
downloadcpython-5d0990494e7397945385691d9a315b5fa7d64147.zip
cpython-5d0990494e7397945385691d9a315b5fa7d64147.tar.gz
cpython-5d0990494e7397945385691d9a315b5fa7d64147.tar.bz2
Open the source file in universal newline mode.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/buildtools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Lib/buildtools.py b/Mac/Lib/buildtools.py
index d831610..efc5c47 100644
--- a/Mac/Lib/buildtools.py
+++ b/Mac/Lib/buildtools.py
@@ -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: