summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/menu/_Menumodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/menu/_Menumodule.c')
-rw-r--r--Mac/Modules/menu/_Menumodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/menu/_Menumodule.c b/Mac/Modules/menu/_Menumodule.c
index ecdd156..629adaf 100644
--- a/Mac/Modules/menu/_Menumodule.c
+++ b/Mac/Modules/menu/_Menumodule.c
@@ -79,7 +79,7 @@ static PyObject *Menu_Error;
PyTypeObject Menu_Type;
-#define MenuObj_Check(x) ((x)->ob_type == &Menu_Type)
+#define MenuObj_Check(x) ((x)->ob_type == &Menu_Type || PyObject_TypeCheck((x), &Menu_Type))
typedef struct MenuObject {
PyObject_HEAD