summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/imputil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imputil.py b/Lib/imputil.py
index 5d462f1..04111dc 100644
--- a/Lib/imputil.py
+++ b/Lib/imputil.py
@@ -410,7 +410,7 @@ def _compile(pathname, timestamp):
saved back to the filesystem for future imports. The source file's
modification timestamp must be provided as a Long value.
"""
- codestring = open(pathname, 'r').read()
+ codestring = open(pathname, 'rU').read()
if codestring and codestring[-1] != '\n':
codestring = codestring + '\n'
code = __builtin__.compile(codestring, pathname, 'exec')