mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Add comment to mollify Tim.
This commit is contained in:
parent
203eec46c1
commit
ecd9129c94
1 changed files with 2 additions and 0 deletions
|
@ -594,6 +594,8 @@ PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname)
|
|||
m = PyImport_AddModule(name);
|
||||
if (m == NULL)
|
||||
return NULL;
|
||||
/* If the module is being reloaded, we get the old module back
|
||||
and re-use its dict to exec the new code. */
|
||||
d = PyModule_GetDict(m);
|
||||
if (PyDict_GetItemString(d, "__builtins__") == NULL) {
|
||||
if (PyDict_SetItemString(d, "__builtins__",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue