diff options
author | Just van Rossum <just@letterror.com> | 2003-07-10 14:53:27 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-07-10 14:53:27 (GMT) |
commit | ed8bfce0028ecd7e7c3b778f70b24d8d03809a05 (patch) | |
tree | e75e6ea8ed8b2556d25b0d000f801cc1a09d93ef | |
parent | 87316ec96207a85b6ad8d93b28e4130373556248 (diff) | |
download | cpython-ed8bfce0028ecd7e7c3b778f70b24d8d03809a05.zip cpython-ed8bfce0028ecd7e7c3b778f70b24d8d03809a05.tar.gz cpython-ed8bfce0028ecd7e7c3b778f70b24d8d03809a05.tar.bz2 |
Fixed a bug that's been there from the beginning but wasn't noticed
until now: the inheritance of default values was the wrong way around.
This caused app bundles to get a type of "BNDL" instead of "APPL".
Apparently this is not a problem until you try to drag your app to
the dock.
----------------------------------------------------------------------
-rwxr-xr-x | Lib/plat-mac/bundlebuilder.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index 1c786b8..09b9dea 100755 --- a/Lib/plat-mac/bundlebuilder.py +++ b/Lib/plat-mac/bundlebuilder.py @@ -54,13 +54,13 @@ class Defaults: def _getDefaults(cls): defaults = {} + for base in cls.__bases__: + if hasattr(base, "_getDefaults"): + defaults.update(base._getDefaults()) for name, value in cls.__dict__.items(): if name[0] != "_" and not isinstance(value, (function, classmethod)): defaults[name] = deepcopy(value) - for base in cls.__bases__: - if hasattr(base, "_getDefaults"): - defaults.update(base._getDefaults()) return defaults _getDefaults = classmethod(_getDefaults) |