summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2019-10-06 11:28:33 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-10-06 11:28:33 (GMT)
commitc38e725d17537b20ff090b1b5ec7db1820ff9b63 (patch)
tree43538ff0c73adcfe30a7db8d28af1a2e24c93436 /Objects
parent65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd (diff)
downloadcpython-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.c8
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;
}