mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
This commit is contained in:
parent
a7847590f0
commit
1b55b65638
33 changed files with 56 additions and 56 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue