From c7c78ae531ef6fab5ad354e616ee73c4a52ac422 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 6 May 2003 13:07:32 +0000 Subject: Allow for Version, Flavor and Download-URL not being set. --- Lib/plat-mac/pimp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py index 22ff34e..647fe8e 100644 --- a/Lib/plat-mac/pimp.py +++ b/Lib/plat-mac/pimp.py @@ -380,11 +380,11 @@ class PimpPackage: return self._dict[key] def name(self): return self._dict['Name'] - def version(self): return self._dict['Version'] - def flavor(self): return self._dict['Flavor'] + def version(self): return self._dict.get('Version') + def flavor(self): return self._dict.get('Flavor') def description(self): return self._dict['Description'] def homepage(self): return self._dict.get('Home-page') - def downloadURL(self): return self._dict['Download-URL'] + def downloadURL(self): return self._dict.get('Download-URL') def fullname(self): """Return the full name "name-version-flavor" of a package. -- cgit v0.12