Problem: Can't use Vim dictionary as self argument in Python.
Solution: Fix the check for the "self" argument. (ZyX)
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;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 611,
/**/
610,
/**/