commit | 1b55b65638254aa78b005fbf0b71fb02499f1852 | [log] [tgz] |
---|---|---|
author | Dong-hee Na <donghee.na92@gmail.com> | Mon Feb 17 19:09:15 2020 +0900 |
committer | GitHub <noreply@github.com> | Mon Feb 17 11:09:15 2020 +0100 |
tree | 3c9a1a7b47443d75d73a57002ecb3a49ae88ce2c | |
parent | a7847590f07655e794d7c62130aea245a110acef [diff] [blame] |
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index f00329b..24b0ffb 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c
@@ -256,7 +256,7 @@ /* PyST_Type isn't subclassable, so just check ob_type */ -#define PyST_Object_Check(v) (Py_TYPE(v) == &PyST_Type) +#define PyST_Object_Check(v) Py_IS_TYPE(v, &PyST_Type) static int parser_compare_nodes(node *left, node *right)