commit | 4e86d5b88d96305a31a3acae5cea53824f4e8d21 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Wed May 04 13:55:36 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Wed May 04 13:55:36 2011 +0200 |
tree | 7b9022afb966e93c1ecac9dd3147365d9321a657 | |
parent | 35b300c5fd8406c0e05bc2a1e7e07e6db848571e [diff] [blame] |
Replace open(filename, 'rU') by open(filename, 'r') The U flag is no more used (but still accepted for backward compatibility).
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 @@ 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