summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/te
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-03-25 00:32:17 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-03-25 00:32:17 (GMT)
commit714d7268d5dcd9233bb8b3580cd9bce5a5a9fc50 (patch)
tree3c0ae2f82a414db75c1420aeb2f3686609d148c9 /Mac/Modules/te
parentcddc1a0249fd3ace2711d5132605e773b78827b5 (diff)
downloadcpython-714d7268d5dcd9233bb8b3580cd9bce5a5a9fc50.zip
cpython-714d7268d5dcd9233bb8b3580cd9bce5a5a9fc50.tar.gz
cpython-714d7268d5dcd9233bb8b3580cd9bce5a5a9fc50.tar.bz2
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate.
Diffstat (limited to 'Mac/Modules/te')
-rw-r--r--Mac/Modules/te/tesupport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/te/tesupport.py b/Mac/Modules/te/tesupport.py
index 6aa5a65..a77250c 100644
--- a/Mac/Modules/te/tesupport.py
+++ b/Mac/Modules/te/tesupport.py
@@ -79,7 +79,7 @@ initstuff = initstuff + """
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TEHandle, TEObj_Convert);
"""
-class TEMethodGenerator(OSErrMethodGenerator):
+class TEMethodGenerator(OSErrWeakLinkMethodGenerator):
"""Similar to MethodGenerator, but has self as last argument"""
def parseArgumentList(self, args):
@@ -150,7 +150,7 @@ object = MyObjectDefinition(OBJECTNAME, OBJECTPREFIX, OBJECTTYPE)
module.addobject(object)
# Create the generator classes used to populate the lists
-Function = OSErrFunctionGenerator
+Function = OSErrWeakLinkFunctionGenerator
Method = TEMethodGenerator
# Create and populate the lists