aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2020-02-17 19:09:15 +0900
committerGitHub <noreply@github.com>2020-02-17 11:09:15 +0100
commit1b55b65638254aa78b005fbf0b71fb02499f1852 (patch)
tree3c9a1a7b47443d75d73a57002ecb3a49ae88ce2c /Objects/classobject.c
parentbpo-36465: Update doc of init_config.rst (GH-18520) (diff)
downloadcpython-1b55b65638254aa78b005fbf0b71fb02499f1852.tar.gz
cpython-1b55b65638254aa78b005fbf0b71fb02499f1852.tar.bz2
cpython-1b55b65638254aa78b005fbf0b71fb02499f1852.zip
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index 33afbcd8747..97f50fa1a1e 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -37,7 +37,7 @@ static PyObject *
method_vectorcall(PyObject *method, PyObject *const *args,
size_t nargsf, PyObject *kwnames)
{
- assert(Py_TYPE(method) == &PyMethod_Type);
+ assert(Py_IS_TYPE(method, &PyMethod_Type));
PyThreadState *tstate = _PyThreadState_GET();
PyObject *self = PyMethod_GET_SELF(method);