mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Minor cleanup.
This commit is contained in:
parent
cf6b6326e5
commit
a1d09e2ded
1 changed files with 1 additions and 2 deletions
|
@ -2012,8 +2012,7 @@ class TarFileCompat:
|
|||
raise ValueError, "unknown compression constant"
|
||||
if mode[0:1] == "r":
|
||||
members = self.tarfile.getmembers()
|
||||
for i in xrange(len(members)):
|
||||
m = members[i]
|
||||
for m in members:
|
||||
m.filename = m.name
|
||||
m.file_size = m.size
|
||||
m.date_time = time.gmtime(m.mtime)[:6]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue