0
0
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:
Bram Moolenaar 2012-07-25 15:36:04 +02:00
parent 641e286153
commit 9581b5f70e
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
611,
/**/
610,
/**/