Mercurial > ~astiob > upreckon > hgweb
diff upreckon/files.py @ 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 | ede78fbd509a |
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)