diff options
author | Raymond Hettinger <python@rcn.com> | 2005-09-11 16:34:05 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-09-11 16:34:05 (GMT) |
commit | a1d09e2dedc6c721280fea74aee4e903859655de (patch) | |
tree | b65c547fe7c8596c70fd6bbb512ac364cbd649e2 | |
parent | cf6b6326e5844717954f9447ef1e307111f546d2 (diff) | |
download | cpython-a1d09e2dedc6c721280fea74aee4e903859655de.zip cpython-a1d09e2dedc6c721280fea74aee4e903859655de.tar.gz cpython-a1d09e2dedc6c721280fea74aee4e903859655de.tar.bz2 |
Minor cleanup.
-rw-r--r-- | Lib/tarfile.py | 3 |
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] |