mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user