summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/tarfile.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 60259bc..2f21971 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -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]