summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-09 18:00:58 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-09 18:00:58 (GMT)
commit50ee94fd41fa125b9a4e73bcc5a66e54260e4b67 (patch)
tree0de0e2f1af5f401fc1e8b5729dd31cc070d3f012 /Python
parenteee12e9aba74700f2cbae7d941a3ed118f729e5b (diff)
downloadcpython-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.c2
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 *