diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/linecache.py | 2 | ||||
-rw-r--r-- | Lib/py_compile.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/linecache.py b/Lib/linecache.py index cd3e50d..9953034 100644 --- a/Lib/linecache.py +++ b/Lib/linecache.py @@ -90,7 +90,7 @@ def updatecache(filename): ## print '*** Cannot stat', filename, ':', msg return [] try: - fp = open(fullname, 'r') + fp = open(fullname, 'rU') lines = fp.readlines() fp.close() except IOError, msg: 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: |