diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-19 21:24:35 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-19 21:24:35 (GMT) |
commit | f955784f0cfeecb94d3f2ade83a5ea548391f74b (patch) | |
tree | 3f112a082ca586d310f0a70001ab4bc14e087cca /Mac/Modules/win | |
parent | 5bb2f6497f6b4455e4da64ef049bf43cd1c2215a (diff) | |
download | cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.zip cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.gz cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.bz2 |
Regenerated with inheritance-aware xxxx_Check() macros.
Diffstat (limited to 'Mac/Modules/win')
-rw-r--r-- | Mac/Modules/win/_Winmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/win/_Winmodule.c b/Mac/Modules/win/_Winmodule.c index ef75cba..c0401e0 100644 --- a/Mac/Modules/win/_Winmodule.c +++ b/Mac/Modules/win/_Winmodule.c @@ -54,7 +54,7 @@ static PyObject *Win_Error; PyTypeObject Window_Type; -#define WinObj_Check(x) ((x)->ob_type == &Window_Type) +#define WinObj_Check(x) ((x)->ob_type == &Window_Type || PyObject_TypeCheck((x), &Window_Type)) typedef struct WindowObject { PyObject_HEAD |