summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-19 04:45:11 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-09-19 04:45:11 (GMT)
commit7eb1becc2502723ebcdcc56972e41c03ef80d6af (patch)
tree904f60ee0ff01a8be376642190613344ef297459 /Objects
parent96b2dd5997735f417526758cbe3ab497850baf71 (diff)
downloadcpython-7eb1becc2502723ebcdcc56972e41c03ef80d6af.zip
cpython-7eb1becc2502723ebcdcc56972e41c03ef80d6af.tar.gz
cpython-7eb1becc2502723ebcdcc56972e41c03ef80d6af.tar.bz2
Issue #28189: dictitems_contains no longer swallows compare errors.
(Patch by Xiang Zhang)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index e04ab2b..e79ab36 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -3654,7 +3654,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;