is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]

This commit is contained in:
Guido van Rossum 2002-04-09 18:00:58 +00:00
parent eee12e9aba
commit 50ee94fd41
1 changed files with 1 additions and 1 deletions

View File

@ -2295,7 +2295,7 @@ imp_is_builtin(PyObject *self, PyObject *args)
char *name;
if (!PyArg_ParseTuple(args, "s:is_builtin", &name))
return NULL;
return PyBool_FromLong(is_builtin(name));
return PyInt_FromLong(is_builtin(name));
}
static PyObject *