commit | 24c137432c0f0d26f13d2f645688e904f8ca0ee1 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Feb 14 09:42:43 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Feb 14 09:42:43 1995 +0000 |
tree | 98fbb3b71454704b2d0af2cf77562eb8b779e6e4 | |
parent | becdbec8067c0e4cd9c0d9aad682c547d8a2bba3 [diff] [blame] |
call __import__() with 4 args instead of 1
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 83eeecb..0500060 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -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); }