diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2020-02-17 19:09:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 11:09:15 +0100 |
commit | 1b55b65638254aa78b005fbf0b71fb02499f1852 (patch) | |
tree | 3c9a1a7b47443d75d73a57002ecb3a49ae88ce2c /Modules/unicodedata.c | |
parent | a7847590f07655e794d7c62130aea245a110acef (diff) | |
download | cpython-git-1b55b65638254aa78b005fbf0b71fb02499f1852.tar.gz |
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r-- | Modules/unicodedata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 58b1bc2d0a..ce97bdf89f 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -92,7 +92,7 @@ static PyMemberDef DB_members[] = { /* forward declaration */ static PyTypeObject UCD_Type; -#define UCD_Check(o) (Py_TYPE(o)==&UCD_Type) +#define UCD_Check(o) Py_IS_TYPE(o, &UCD_Type) static PyObject* new_previous_version(const char*name, const change_record* (*getrecord)(Py_UCS4), |