aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-04-22 13:56:19 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-04-22 13:56:19 +0000
commit6432f78215e1dc9a3a929074eccc253bd7d3e738 (patch)
tree7af3f3ae59c9e5b93446983274f80cd496d9bfcb /Lib/plat-mac
parentAllow setting the auto dispose flag on window objects. (diff)
downloadcpython-6432f78215e1dc9a3a929074eccc253bd7d3e738.tar.gz
cpython-6432f78215e1dc9a3a929074eccc253bd7d3e738.tar.bz2
cpython-6432f78215e1dc9a3a929074eccc253bd7d3e738.zip
Only return a warning message about not all files being unpacked if there
were indeed files that weren't unpacked.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/pimp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py
index b3bf781c5dc..8a44963360f 100644
--- a/Lib/plat-mac/pimp.py
+++ b/Lib/plat-mac/pimp.py
@@ -131,7 +131,8 @@ class PimpTarUnpacker(PimpUnpacker):
tf.extract(member, self._dir)
if skip:
names = [member.name for member in skip if member.name[-1] != '/']
- return "Not all files were unpacked: %s" % " ".join(names)
+ if names:
+ return "Not all files were unpacked: %s" % " ".join(names)
ARCHIVE_FORMATS = [
(".tar.Z", PimpTarUnpacker, None),