Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 2338:4c2f1452125d legacy-trunk
call __import__() with 4 args instead of 1
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 14 Feb 1995 09:42:43 +0000 |
| parents | 08b457d6b516 |
| children | 51c8824985f8 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Tue Feb 14 01:27:24 1995 +0000 +++ b/Python/bltinmodule.c Tue Feb 14 09:42:43 1995 +0000 @@ -47,8 +47,12 @@ object *args; { char *name; + object *globals = NULL; + object *locals = NULL; + object *fromlist = NULL; - if (!newgetargs(args, "s:__import__", &name)) + if (!newgetargs(args, "s|OOO:__import__", + &name, &globals, &locals, &fromlist)) return NULL; return import_module(name); }
