summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-14 09:42:43 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-14 09:42:43 (GMT)
commit24c137432c0f0d26f13d2f645688e904f8ca0ee1 (patch)
tree98fbb3b71454704b2d0af2cf77562eb8b779e6e4 /Python/bltinmodule.c
parentbecdbec8067c0e4cd9c0d9aad682c547d8a2bba3 (diff)
downloadcpython-24c137432c0f0d26f13d2f645688e904f8ca0ee1.zip
cpython-24c137432c0f0d26f13d2f645688e904f8ca0ee1.tar.gz
cpython-24c137432c0f0d26f13d2f645688e904f8ca0ee1.tar.bz2
call __import__() with 4 args instead of 1
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);
}