summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-09-11 16:34:05 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-09-11 16:34:05 (GMT)
commita1d09e2dedc6c721280fea74aee4e903859655de (patch)
treeb65c547fe7c8596c70fd6bbb512ac364cbd649e2
parentcf6b6326e5844717954f9447ef1e307111f546d2 (diff)
downloadcpython-a1d09e2dedc6c721280fea74aee4e903859655de.zip
cpython-a1d09e2dedc6c721280fea74aee4e903859655de.tar.gz
cpython-a1d09e2dedc6c721280fea74aee4e903859655de.tar.bz2
Minor cleanup.
-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]