diff options
author | Guido van Rossum <guido@python.org> | 2002-04-09 18:00:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-09 18:00:58 (GMT) |
commit | 50ee94fd41fa125b9a4e73bcc5a66e54260e4b67 (patch) | |
tree | 0de0e2f1af5f401fc1e8b5729dd31cc070d3f012 /Python | |
parent | eee12e9aba74700f2cbae7d941a3ed118f729e5b (diff) | |
download | cpython-50ee94fd41fa125b9a4e73bcc5a66e54260e4b67.zip cpython-50ee94fd41fa125b9a4e73bcc5a66e54260e4b67.tar.gz cpython-50ee94fd41fa125b9a4e73bcc5a66e54260e4b67.tar.bz2 |
is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 11bd84e..1a06153 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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 * |