is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]
This commit is contained in:
parent
eee12e9aba
commit
50ee94fd41
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue