mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
(Merge 3.4) Issue #21925: PyImport_Cleanup(): Remove unused parameter in
PySys_FormatStderr() call
This commit is contained in:
commit
ac7d80c7d0
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ PyImport_Cleanup(void)
|
||||||
while (PyDict_Next(modules, &pos, &key, &value)) {
|
while (PyDict_Next(modules, &pos, &key, &value)) {
|
||||||
if (PyModule_Check(value)) {
|
if (PyModule_Check(value)) {
|
||||||
if (Py_VerboseFlag && PyUnicode_Check(key))
|
if (Py_VerboseFlag && PyUnicode_Check(key))
|
||||||
PySys_FormatStderr("# cleanup[2] removing %U\n", key, value);
|
PySys_FormatStderr("# cleanup[2] removing %U\n", key);
|
||||||
STORE_MODULE_WEAKREF(key, value);
|
STORE_MODULE_WEAKREF(key, value);
|
||||||
PyDict_SetItem(modules, key, Py_None);
|
PyDict_SetItem(modules, key, Py_None);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue