mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
use getbuiltins() everywhere, it defaults to getbuiltidict()
This commit is contained in:
parent
922d8ff803
commit
94390ec2a6
3 changed files with 4 additions and 3 deletions
|
|
@ -149,7 +149,7 @@ exec_code_module(name, co)
|
|||
return NULL;
|
||||
d = getmoduledict(m);
|
||||
if (dictlookup(d, "__builtins__") == NULL) {
|
||||
if (dictinsert(d, "__builtins__", getbuiltindict()) != 0)
|
||||
if (dictinsert(d, "__builtins__", getbuiltins()) != 0)
|
||||
return NULL;
|
||||
}
|
||||
v = eval_code((codeobject *)co, d, d, d, (object *)NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue