mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
This commit is contained in:
parent
38f44b4a4a
commit
762f93ff2e
37 changed files with 154 additions and 132 deletions
|
@ -539,7 +539,7 @@ _PyImport_Cleanup(PyThreadState *tstate)
|
|||
}
|
||||
else {
|
||||
_Py_IDENTIFIER(clear);
|
||||
if (_PyObject_CallMethodId(modules, &PyId_clear, "") == NULL) {
|
||||
if (_PyObject_CallMethodIdNoArgs(modules, &PyId_clear) == NULL) {
|
||||
PyErr_WriteUnraisable(NULL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue