From: Guido van Rossum Date: Tue, 9 Mar 1999 16:05:26 +0000 (+0000) Subject: Small change by Jack Jansen. X-Git-Tag: v1.5.2c1~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2cd6f8c935425a12c625f7afaabe7c37401b024;p=python Small change by Jack Jansen. Test for self.returntype behaving like OSErr rather than being it. --- diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py index 5a00eca96e..38c9d9652e 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)