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/waste | |
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/waste')
-rw-r--r-- | Mac/Modules/waste/wastemodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/waste/wastemodule.c b/Mac/Modules/waste/wastemodule.c index c5e3941..85159e5 100644 --- a/Mac/Modules/waste/wastemodule.c +++ b/Mac/Modules/waste/wastemodule.c @@ -205,7 +205,7 @@ static PyObject *waste_Error; PyTypeObject WEO_Type; -#define WEOObj_Check(x) ((x)->ob_type == &WEO_Type) +#define WEOObj_Check(x) ((x)->ob_type == &WEO_Type || PyObject_TypeCheck((x), &WEO_Type)) typedef struct WEOObject { PyObject_HEAD @@ -458,7 +458,7 @@ PyTypeObject WEO_Type = { PyTypeObject waste_Type; -#define wasteObj_Check(x) ((x)->ob_type == &waste_Type) +#define wasteObj_Check(x) ((x)->ob_type == &waste_Type || PyObject_TypeCheck((x), &waste_Type)) typedef struct wasteObject { PyObject_HEAD |