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/file | |
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/file')
-rw-r--r-- | Mac/Modules/file/_Filemodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c index 300fbaf..2bbc276 100644 --- a/Mac/Modules/file/_Filemodule.c +++ b/Mac/Modules/file/_Filemodule.c @@ -101,7 +101,7 @@ static PyObject *File_Error; PyTypeObject Alias_Type; -#define Alias_Check(x) ((x)->ob_type == &Alias_Type) +#define Alias_Check(x) ((x)->ob_type == &Alias_Type || PyObject_TypeCheck((x), &Alias_Type)) typedef struct AliasObject { PyObject_HEAD @@ -447,7 +447,7 @@ PyTypeObject Alias_Type = { PyTypeObject FSSpec_Type; -#define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type) +#define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type || PyObject_TypeCheck((x), &FSSpec_Type)) typedef struct FSSpecObject { PyObject_HEAD @@ -916,7 +916,7 @@ PyTypeObject FSSpec_Type = { PyTypeObject FSRef_Type; -#define FSRef_Check(x) ((x)->ob_type == &FSRef_Type) +#define FSRef_Check(x) ((x)->ob_type == &FSRef_Type || PyObject_TypeCheck((x), &FSRef_Type)) typedef struct FSRefObject { PyObject_HEAD |