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/site.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/site.py')
| -rw-r--r-- | Lib/site.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/site.py b/Lib/site.py index fcfdbed..46fa53a 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -138,7 +138,7 @@ def addpackage(sitedir, name, known_paths): reset = 0 fullname = os.path.join(sitedir, name) try: - f = open(fullname, "rU") + f = open(fullname, "r") except IOError: return with f: @@ -385,7 +385,7 @@ class _Printer(object): for filename in self.__files: filename = os.path.join(dir, filename) try: - fp = open(filename, "rU") + fp = open(filename, "r") data = fp.read() fp.close() break |
