mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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:
parent
35b300c5fd
commit
4e86d5b88d
4 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue