Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Objects/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ PyObject_GetItem(PyObject *o, PyObject *key)
int
PyMapping_GetOptionalItem(PyObject *obj, PyObject *key, PyObject **result)
{
if (PyDict_CheckExact(obj)) {
if (PyAnyDict_CheckExact(obj)) {
return PyDict_GetItemRef(obj, key, result);
}

Expand Down Expand Up @@ -2462,7 +2462,7 @@ PyMapping_Keys(PyObject *o)
if (o == NULL) {
return null_error();
}
if (PyDict_CheckExact(o)) {
if (PyAnyDict_CheckExact(o)) {
return PyDict_Keys(o);
}
return method_output_as_list(o, &_Py_ID(keys));
Expand All @@ -2474,7 +2474,7 @@ PyMapping_Items(PyObject *o)
if (o == NULL) {
return null_error();
}
if (PyDict_CheckExact(o)) {
if (PyAnyDict_CheckExact(o)) {
return PyDict_Items(o);
}
return method_output_as_list(o, &_Py_ID(items));
Expand All @@ -2486,7 +2486,7 @@ PyMapping_Values(PyObject *o)
if (o == NULL) {
return null_error();
}
if (PyDict_CheckExact(o)) {
if (PyAnyDict_CheckExact(o)) {
return PyDict_Values(o);
}
return method_output_as_list(o, &_Py_ID(values));
Expand Down
Loading