summaryrefslogtreecommitdiffstats
path: root/src/if_py_both.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 530c6d86aa..6c1aa7fd43 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -1284,9 +1284,10 @@ FunctionCall(PyObject *self, PyObject *argsObject, PyObject *kwargs)
selfdictObject = PyDict_GetItemString(kwargs, "self");
if (selfdictObject != NULL)
{
- if (!PyDict_Check(selfdictObject))
+ if (!PyMapping_Check(selfdictObject))
{
- PyErr_SetString(PyExc_TypeError, _("'self' argument must be a dictionary"));
+ PyErr_SetString(PyExc_TypeError,
+ _("'self' argument must be a dictionary"));
clear_tv(&args);
return NULL;
}