mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.611
Problem: Can't use Vim dictionary as self argument in Python. Solution: Fix the check for the "self" argument. (ZyX)
This commit is contained in:
parent
641e286153
commit
9581b5f70e
@ -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;
|
||||
}
|
||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
611,
|
||||
/**/
|
||||
610,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user