Mercurial > ~astiob > upreckon > hgweb
changeset 197:79f4f2fdeead
Very slightly simplified files.ZipArchive.__init__
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 15 Aug 2011 20:27:05 +0300 |
parents | 67088c1765b4 |
children | 1de2ea435d93 |
files | upreckon/files.py |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/upreckon/files.py Mon Aug 15 19:52:58 2011 +0300 +++ b/upreckon/files.py Mon Aug 15 20:27:05 2011 +0300 @@ -134,8 +134,6 @@ files, dirs = {}, set(('/',)) for member in self._zipfile.infolist(): cutname = posixpath.normpath('/' + member.filename) - if cutname == '/': - continue if not member.filename.endswith('/'): files[cutname] = member cutname = posixpath.dirname(cutname)