summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-09 16:05:26 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-09 16:05:26 (GMT)
commitd2cd6f8c935425a12c625f7afaabe7c37401b024 (patch)
tree2beaf85369423fc5378681696c815b65158289c9 /Tools
parentdb75afe6e5fbce9eede3ce5e7ec00510f53eda99 (diff)
downloadcpython-d2cd6f8c935425a12c625f7afaabe7c37401b024.zip
cpython-d2cd6f8c935425a12c625f7afaabe7c37401b024.tar.gz
cpython-d2cd6f8c935425a12c625f7afaabe7c37401b024.tar.bz2
Small change by Jack Jansen.
Test for self.returntype behaving like OSErr rather than being it.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/macsupport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py
index 5a00eca..38c9d96 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)