commit | 50ee94fd41fa125b9a4e73bcc5a66e54260e4b67 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Apr 09 18:00:58 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Apr 09 18:00:58 2002 +0000 |
tree | 0de0e2f1af5f401fc1e8b5729dd31cc070d3f012 | |
parent | eee12e9aba74700f2cbae7d941a3ed118f729e5b [diff] |
is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]
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 @@ 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 *