mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Issue #19512: Use the new _PyId_builtins identifier
This commit is contained in:
parent
ad14ccd047
commit
53e9ec48e5
3 changed files with 8 additions and 4 deletions
|
@ -310,7 +310,7 @@ PyImport_Cleanup(void)
|
|||
|
||||
/* XXX Perhaps these precautions are obsolete. Who knows? */
|
||||
|
||||
value = PyDict_GetItemString(modules, "builtins");
|
||||
value = _PyDict_GetItemId(modules, &_PyId_builtins);
|
||||
if (value != NULL && PyModule_Check(value)) {
|
||||
dict = PyModule_GetDict(value);
|
||||
if (Py_VerboseFlag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue