Commit d2cd6f8c authored by Guido van Rossum's avatar Guido van Rossum

Small change by Jack Jansen.

Test for self.returntype behaving like OSErr rather than being it.
parent db75afe6
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment