mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-37493: use _PyObject_CallNoArg in more places (GH-14575)
This commit is contained in:
parent
196a530e00
commit
7f41c8e0dd
6 changed files with 15 additions and 16 deletions
|
@ -4907,7 +4907,7 @@ bad_get(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
PyObject *res = PyObject_CallObject(cls, NULL);
|
||||
PyObject *res = _PyObject_CallNoArg(cls);
|
||||
if (res == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue