Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 2128:92da8901517e legacy-trunk
use getbuiltins() everywhere, it defaults to getbuiltidict()
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 12 Jan 1995 11:37:57 +0000 |
| parents | b7be0382f9ee |
| children | 27557e70a8f0 |
line wrap: on
line diff
--- a/Python/import.c Thu Jan 12 11:31:04 1995 +0000 +++ b/Python/import.c Thu Jan 12 11:37:57 1995 +0000 @@ -149,7 +149,7 @@ 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);
