diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-05-06 13:07:32 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-05-06 13:07:32 (GMT) |
commit | c7c78ae531ef6fab5ad354e616ee73c4a52ac422 (patch) | |
tree | 4b90561c82a19db21aaa612b064efca659c630f1 /Lib/plat-mac | |
parent | 705553acabe1db64097bbc1bea3b81ff6d8c04f7 (diff) | |
download | cpython-c7c78ae531ef6fab5ad354e616ee73c4a52ac422.zip cpython-c7c78ae531ef6fab5ad354e616ee73c4a52ac422.tar.gz cpython-c7c78ae531ef6fab5ad354e616ee73c4a52ac422.tar.bz2 |
Allow for Version, Flavor and Download-URL not being set.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r-- | Lib/plat-mac/pimp.py | 6 |
1 files 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. |