diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-04 11:55:36 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-04 11:55:36 (GMT) |
commit | 4e86d5b88d96305a31a3acae5cea53824f4e8d21 (patch) | |
tree | 7b9022afb966e93c1ecac9dd3147365d9321a657 /Lib/runpy.py | |
parent | 35b300c5fd8406c0e05bc2a1e7e07e6db848571e (diff) | |
download | cpython-4e86d5b88d96305a31a3acae5cea53824f4e8d21.zip cpython-4e86d5b88d96305a31a3acae5cea53824f4e8d21.tar.gz cpython-4e86d5b88d96305a31a3acae5cea53824f4e8d21.tar.bz2 |
Replace open(filename, 'rU') by open(filename, 'r')
The U flag is no more used (but still accepted for backward compatibility).
Diffstat (limited to 'Lib/runpy.py')
-rw-r--r-- | Lib/runpy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py index 4738df3..496df6d 100644 --- a/Lib/runpy.py +++ b/Lib/runpy.py @@ -226,7 +226,7 @@ def _get_code_from_file(fname): code = read_code(f) if code is None: # That didn't work, so try it as normal source code - with open(fname, "rU") as f: + with open(fname, "r") as f: code = compile(f.read(), fname, 'exec') return code |