summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/te/_TEmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/te/_TEmodule.c')
-rw-r--r--Mac/Modules/te/_TEmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/te/_TEmodule.c b/Mac/Modules/te/_TEmodule.c
index 990efa2..ec5b9cb 100644
--- a/Mac/Modules/te/_TEmodule.c
+++ b/Mac/Modules/te/_TEmodule.c
@@ -67,7 +67,7 @@ static PyObject *TE_Error;
PyTypeObject TE_Type;
-#define TEObj_Check(x) ((x)->ob_type == &TE_Type)
+#define TEObj_Check(x) ((x)->ob_type == &TE_Type || PyObject_TypeCheck((x), &TE_Type))
typedef struct TEObject {
PyObject_HEAD