diff options
author | Guido van Rossum <guido@python.org> | 2002-04-09 18:00:58 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-09 18:00:58 +0000 |
commit | 50ee94fd41fa125b9a4e73bcc5a66e54260e4b67 (patch) | |
tree | 0de0e2f1af5f401fc1e8b5729dd31cc070d3f012 /Python | |
parent | eee12e9aba74700f2cbae7d941a3ed118f729e5b (diff) | |
download | cpython-git-50ee94fd41fa125b9a4e73bcc5a66e54260e4b67.tar.gz |
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 11bd84e524..1a061532d0 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 * |