Replace open(filename, 'rU') by open(filename, 'r')

The U flag is no more used (but still accepted for backward compatibility).
This commit is contained in:
Victor Stinner 2011-05-04 13:55:36 +02:00
parent 35b300c5fd
commit 4e86d5b88d
4 changed files with 6 additions and 6 deletions

View file

@ -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: