mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +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
|
@ -100,7 +100,7 @@ initmain()
|
|||
fatal("can't create __main__ module");
|
||||
d = getmoduledict(m);
|
||||
if (dictlookup(d, "__builtins__") == NULL) {
|
||||
if (dictinsert(d, "__builtins__", getbuiltindict()))
|
||||
if (dictinsert(d, "__builtins__", getbuiltins()))
|
||||
fatal("can't add __builtins__ to __main__");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue