diff options
author | Raymond Hettinger <python@rcn.com> | 2016-09-19 04:45:11 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-09-19 04:45:11 (GMT) |
commit | 7eb1becc2502723ebcdcc56972e41c03ef80d6af (patch) | |
tree | 904f60ee0ff01a8be376642190613344ef297459 /Objects | |
parent | 96b2dd5997735f417526758cbe3ab497850baf71 (diff) | |
download | cpython-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.c | 2 |
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; |