]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed a bug that's been there from the beginning but wasn't noticed
authorJust van Rossum <just@letterror.com>
Thu, 10 Jul 2003 14:53:27 +0000 (14:53 +0000)
committerJust van Rossum <just@letterror.com>
Thu, 10 Jul 2003 14:53:27 +0000 (14:53 +0000)
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.
----------------------------------------------------------------------

Lib/plat-mac/bundlebuilder.py

index 1c786b88576df15a38409c7bba162eaa8bb1f256..09b9deae4a5a6aab1302dabb36b908d542b67a85 100755 (executable)
@@ -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)