summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 5 insertions, 1 deletions
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 @@ builtin___import__(self, args)
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);
}