summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-08-16 08:54:58 (GMT)
committerGuido van Rossum <guido@python.org>1991-08-16 08:54:58 (GMT)
commita57fb011f17bd0f382f6d0a81e8733d81ee34353 (patch)
treedec7e3a2a30306a35fd8bd7eb8617522b79f6733 /Python
parentabe5835b4f308f87db83a3ae091e3273d8705497 (diff)
downloadcpython-a57fb011f17bd0f382f6d0a81e8733d81ee34353.zip
cpython-a57fb011f17bd0f382f6d0a81e8733d81ee34353.tar.gz
cpython-a57fb011f17bd0f382f6d0a81e8733d81ee34353.tar.bz2
Change getbuiltin interface to get the name as an object;
call dict2lookup insteead of dictlookup.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 128d37e..01cd5fa 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -521,9 +521,9 @@ static object *builtin_dict;
object *
getbuiltin(name)
- char *name;
+ object *name;
{
- return dictlookup(builtin_dict, name);
+ return dict2lookup(builtin_dict, name);
}
/* Predefined exceptions */