summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/res/_Resmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/res/_Resmodule.c')
-rw-r--r--Mac/Modules/res/_Resmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/res/_Resmodule.c b/Mac/Modules/res/_Resmodule.c
index 9ebfba2..e34c2c5 100644
--- a/Mac/Modules/res/_Resmodule.c
+++ b/Mac/Modules/res/_Resmodule.c
@@ -54,7 +54,7 @@ static PyObject *Res_Error;
PyTypeObject Resource_Type;
-#define ResObj_Check(x) ((x)->ob_type == &Resource_Type)
+#define ResObj_Check(x) ((x)->ob_type == &Resource_Type || PyObject_TypeCheck((x), &Resource_Type))
typedef struct ResourceObject {
PyObject_HEAD