diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-19 21:24:35 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-19 21:24:35 +0000 |
commit | f955784f0cfeecb94d3f2ade83a5ea548391f74b (patch) | |
tree | 3f112a082ca586d310f0a70001ab4bc14e087cca /Mac/Modules/te | |
parent | Always output an inheritance-aware version of the xxxx_Check() macro. Also (diff) | |
download | cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.gz cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.bz2 cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.zip |
Regenerated with inheritance-aware xxxx_Check() macros.
Diffstat (limited to 'Mac/Modules/te')
-rw-r--r-- | Mac/Modules/te/_TEmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/te/_TEmodule.c b/Mac/Modules/te/_TEmodule.c index 990efa29787..ec5b9cb732c 100644 --- a/Mac/Modules/te/_TEmodule.c +++ b/Mac/Modules/te/_TEmodule.c @@ -67,7 +67,7 @@ static PyObject *TE_Error; PyTypeObject TE_Type; -#define TEObj_Check(x) ((x)->ob_type == &TE_Type) +#define TEObj_Check(x) ((x)->ob_type == &TE_Type || PyObject_TypeCheck((x), &TE_Type)) typedef struct TEObject { PyObject_HEAD |