mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
dictviews_or() uses _Py_identifier
This commit is contained in:
parent
bfc6d74b25
commit
d1a9cc29b9
1 changed files with 3 additions and 1 deletions
|
|
@ -2747,10 +2747,12 @@ dictviews_or(PyObject* self, PyObject *other)
|
||||||
{
|
{
|
||||||
PyObject *result = PySet_New(self);
|
PyObject *result = PySet_New(self);
|
||||||
PyObject *tmp;
|
PyObject *tmp;
|
||||||
|
_Py_identifier(update);
|
||||||
|
|
||||||
if (result == NULL)
|
if (result == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
tmp = PyObject_CallMethod(result, "update", "O", other);
|
tmp = _PyObject_CallMethodId(result, &PyId_update, "O", other);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
Py_DECREF(result);
|
Py_DECREF(result);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue