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),