From d2cd6f8c935425a12c625f7afaabe7c37401b024 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 9 Mar 1999 16:05:26 +0000 Subject: [PATCH] Small change by Jack Jansen. Test for self.returntype behaving like OSErr rather than being it. --- Tools/bgen/bgen/macsupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py index 5a00eca96eb..38c9d9652e0 100644 --- a/Tools/bgen/bgen/macsupport.py +++ b/Tools/bgen/bgen/macsupport.py @@ -150,9 +150,9 @@ initstuff = """ # This requires that the OSErr type (defined above) has a non-trivial # errorCheck method. class OSErrMixIn: - "Mix-in class to treat OSErr return values special" + "Mix-in class to treat OSErr/OSStatus return values special" def makereturnvar(self): - if self.returntype is OSErr: + if self.returntype.__class__ == OSErrType: return Variable(self.returntype, "_err", ErrorMode) else: return Variable(self.returntype, "_rv", OutMode)