summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-19 04:46:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-09-19 04:46:08 (GMT)
commit6692f01c91b9ca0eafc4e8033bb2757b70f83fa4 (patch)
tree620a6cbc512e7e23e52b2cdf46bbdbe9b318ad44 /Objects/dictobject.c
parent5820f3a3814f0e4983229424388a5e2964758b03 (diff)
downloadcpython-6692f01c91b9ca0eafc4e8033bb2757b70f83fa4.zip
cpython-6692f01c91b9ca0eafc4e8033bb2757b70f83fa4.tar.gz
cpython-6692f01c91b9ca0eafc4e8033bb2757b70f83fa4.tar.bz2
merge
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 0476442..25fdedd 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -4035,7 +4035,7 @@ dictitems_contains(_PyDictViewObject *dv, PyObject *obj)
return 0;
key = PyTuple_GET_ITEM(obj, 0);
value = PyTuple_GET_ITEM(obj, 1);
- found = PyDict_GetItem((PyObject *)dv->dv_dict, key);
+ found = PyDict_GetItemWithError((PyObject *)dv->dv_dict, key);
if (found == NULL) {
if (PyErr_Occurred())
return -1;