diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2019-10-06 11:28:33 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-06 11:28:33 (GMT) |
commit | c38e725d17537b20ff090b1b5ec7db1820ff9b63 (patch) | |
tree | 43538ff0c73adcfe30a7db8d28af1a2e24c93436 /Objects | |
parent | 65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd (diff) | |
download | cpython-c38e725d17537b20ff090b1b5ec7db1820ff9b63.zip cpython-c38e725d17537b20ff090b1b5ec7db1820ff9b63.tar.gz cpython-c38e725d17537b20ff090b1b5ec7db1820ff9b63.tar.bz2 |
bpo-38210: Fix intersection operation with dict view and iterator. (GH-16602)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 2f86946..5c3f1fb 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -4225,14 +4225,6 @@ _PyDictView_Intersect(PyObject* self, PyObject *other) it = PyObject_GetIter(other); - _Py_IDENTIFIER(intersection_update); - tmp = _PyObject_CallMethodIdOneArg(result, &PyId_intersection_update, other); - if (tmp == NULL) { - Py_DECREF(result); - return NULL; - } - Py_DECREF(tmp); - if (PyDictKeys_Check(self)) { dict_contains = dictkeys_contains; } |