mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -82,7 +82,7 @@ _get_impl(PyObject *self)
|
|||
if (impl == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
if (Py_TYPE(impl) != &_abc_data_type) {
|
||||
if (!Py_IS_TYPE(impl, &_abc_data_type)) {
|
||||
PyErr_SetString(PyExc_TypeError, "_abc_impl is set to a wrong type");
|
||||
Py_DECREF(impl);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue