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/test/test_tarfile.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/test/test_tarfile.py')
-rw-r--r-- | Lib/test/test_tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 461518c..ddde01c 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -82,7 +82,7 @@ class UstarReadTest(ReadTest): def test_fileobj_iter(self): self.tar.extract("ustar/regtype", TEMPDIR) tarinfo = self.tar.getmember("ustar/regtype") - with open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") as fobj1: + with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1: lines1 = fobj1.readlines() fobj2 = self.tar.extractfile(tarinfo) try: |