diff options
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index f4cf0df..b720ae5 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1429,7 +1429,7 @@ dict_has_key(register dictobject *mp, PyObject *key) return NULL; } ok = (mp->ma_lookup)(mp, key, hash)->me_value != NULL; - return PyInt_FromLong(ok); + return PyBool_FromLong(ok); } static PyObject * |