summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2004-12-28 21:33:27 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2004-12-28 21:33:27 (GMT)
commit702af67d479a182860012b5dc6005c3c8b8f1f52 (patch)
treede690545b7c5f85d81a909b734a97ed8e1ebe651
parent935ca1018e81b45d220b1ec70a3349177af9d8c1 (diff)
downloadcpython-702af67d479a182860012b5dc6005c3c8b8f1f52.zip
cpython-702af67d479a182860012b5dc6005c3c8b8f1f52.tar.gz
cpython-702af67d479a182860012b5dc6005c3c8b8f1f52.tar.bz2
- getDefaultDatabase wasn't listed in __all__.
- using a different database for non-final releases should only be done for X.Y.0. Non-final micro releases can use the default database just fine, as they are required to be backward compatible.
-rw-r--r--Lib/plat-mac/pimp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py
index 67fab76..5bea42f 100644
--- a/Lib/plat-mac/pimp.py
+++ b/Lib/plat-mac/pimp.py
@@ -28,7 +28,7 @@ import shutil
import time
__all__ = ["PimpPreferences", "PimpDatabase", "PimpPackage", "main",
- "PIMP_VERSION", "main"]
+ "getDefaultDatabase", "PIMP_VERSION", "main"]
_scriptExc_NotInstalled = "pimp._scriptExc_NotInstalled"
_scriptExc_OldInstalled = "pimp._scriptExc_OldInstalled"
@@ -55,7 +55,7 @@ def getDefaultDatabase(experimental=False):
major, minor, micro, state, extra = sys.version_info
pyvers = '%d.%d' % (major, minor)
- if state != 'final':
+ if micro == 0 and state != 'final':
pyvers = pyvers + '%s%d' % (state, extra)
longplatform = distutils.util.get_platform()