mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Change getbuiltin interface to get the name as an object;
call dict2lookup insteead of dictlookup.
This commit is contained in:
parent
abe5835b4f
commit
a57fb011f1
1 changed files with 2 additions and 2 deletions
|
@ -521,9 +521,9 @@ static object *builtin_dict;
|
||||||
|
|
||||||
object *
|
object *
|
||||||
getbuiltin(name)
|
getbuiltin(name)
|
||||||
char *name;
|
object *name;
|
||||||
{
|
{
|
||||||
return dictlookup(builtin_dict, name);
|
return dict2lookup(builtin_dict, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Predefined exceptions */
|
/* Predefined exceptions */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue