Mercurial > hg > PaInt
changeset 37:36e70712fc9a
things are just awful
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 30 Mar 2012 15:06:17 -0700 |
parents | f59da9e6be37 |
children | c9d8abb2026f |
files | paint/package.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/paint/package.py Fri Mar 30 14:44:12 2012 -0700 +++ b/paint/package.py Fri Mar 30 15:06:17 2012 -0700 @@ -55,7 +55,7 @@ # unpack if an archive if self._is_archive(src): try: - self.unpack(src) + self._unpack(src) finally: if tmpfile: os.remove(tmpfile) @@ -74,7 +74,7 @@ fp.close() return filename - def unpack(self, archive): + def _unpack(self, archive): """unpack the archive to a temporary destination""" # TODO: should handle zipfile additionally at least # Ideally, this would be pluggable, etc @@ -84,7 +84,7 @@ members = tf.getmembers() # cut off the top level directory - assert not [i for i in members if not os.path.sep in i.name] + members = [i for i in members if os.path.sep in i.name] tld = set() for member in members: directory, member.name = member.name.split(os.path.sep, 1)