summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r--Lib/py_compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
index 48c4afc..afeaae1 100644
--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -44,7 +44,7 @@ def compile(file, cfile=None, dfile=None):
"""
import os, marshal, __builtin__
- f = open(file)
+ f = open(file, 'U')
try:
timestamp = long(os.fstat(f.fileno())[8])
except AttributeError: