mirror of
https://github.com/python/cpython.git
synced 2025-09-02 15:07:53 +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
|
@ -41,7 +41,7 @@ partial_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
|
||||
pargs = pkw = NULL;
|
||||
func = PyTuple_GET_ITEM(args, 0);
|
||||
if (Py_TYPE(func) == &partial_type && type == &partial_type) {
|
||||
if (Py_IS_TYPE(func, &partial_type) && type == &partial_type) {
|
||||
partialobject *part = (partialobject *)func;
|
||||
if (part->dict == NULL) {
|
||||
pargs = part->args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue