diff options
Diffstat (limited to 'Mac/Modules/dlg/_Dlgmodule.c')
-rw-r--r-- | Mac/Modules/dlg/_Dlgmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/dlg/_Dlgmodule.c b/Mac/Modules/dlg/_Dlgmodule.c index 94f4fcb..50edc87 100644 --- a/Mac/Modules/dlg/_Dlgmodule.c +++ b/Mac/Modules/dlg/_Dlgmodule.c @@ -138,7 +138,7 @@ static PyObject *Dlg_Error; PyTypeObject Dialog_Type; -#define DlgObj_Check(x) ((x)->ob_type == &Dialog_Type) +#define DlgObj_Check(x) ((x)->ob_type == &Dialog_Type || PyObject_TypeCheck((x), &Dialog_Type)) typedef struct DialogObject { PyObject_HEAD |