summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/cm
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-19 21:24:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-19 21:24:35 (GMT)
commitf955784f0cfeecb94d3f2ade83a5ea548391f74b (patch)
tree3f112a082ca586d310f0a70001ab4bc14e087cca /Mac/Modules/cm
parent5bb2f6497f6b4455e4da64ef049bf43cd1c2215a (diff)
downloadcpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.zip
cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.gz
cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.bz2
Regenerated with inheritance-aware xxxx_Check() macros.
Diffstat (limited to 'Mac/Modules/cm')
-rw-r--r--Mac/Modules/cm/_Cmmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/cm/_Cmmodule.c b/Mac/Modules/cm/_Cmmodule.c
index e21e6b0..1eaa577 100644
--- a/Mac/Modules/cm/_Cmmodule.c
+++ b/Mac/Modules/cm/_Cmmodule.c
@@ -69,7 +69,7 @@ static PyObject *Cm_Error;
PyTypeObject ComponentInstance_Type;
-#define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type)
+#define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type || PyObject_TypeCheck((x), &ComponentInstance_Type))
typedef struct ComponentInstanceObject {
PyObject_HEAD
@@ -335,7 +335,7 @@ PyTypeObject ComponentInstance_Type = {
PyTypeObject Component_Type;
-#define CmpObj_Check(x) ((x)->ob_type == &Component_Type)
+#define CmpObj_Check(x) ((x)->ob_type == &Component_Type || PyObject_TypeCheck((x), &Component_Type))
typedef struct ComponentObject {
PyObject_HEAD