From 24c137432c0f0d26f13d2f645688e904f8ca0ee1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 14 Feb 1995 09:42:43 +0000 Subject: call __import__() with 4 args instead of 1 --- Python/bltinmodule.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Python/bltinmodule.c') diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 83eeecbe80..050006082b 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); } -- cgit v1.2.1