From: Jack Jansen Date: Tue, 22 Apr 2003 13:56:19 +0000 (+0000) Subject: Only return a warning message about not all files being unpacked if there X-Git-Tag: v2.3c1~1083 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6432f78215e1dc9a3a929074eccc253bd7d3e738;p=python Only return a warning message about not all files being unpacked if there were indeed files that weren't unpacked. --- diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py index b3bf781c5d..8a44963360 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),