summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-05-06 13:07:32 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-05-06 13:07:32 (GMT)
commitc7c78ae531ef6fab5ad354e616ee73c4a52ac422 (patch)
tree4b90561c82a19db21aaa612b064efca659c630f1 /Lib/plat-mac
parent705553acabe1db64097bbc1bea3b81ff6d8c04f7 (diff)
downloadcpython-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.py6
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.