]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.611 v7.3.611
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Jul 2012 13:36:04 +0000 (15:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Jul 2012 13:36:04 +0000 (15:36 +0200)
Problem:    Can't use Vim dictionary as self argument in Python.
Solution:   Fix the check for the "self" argument. (ZyX)

src/if_py_both.h
src/version.c

index 530c6d86aab992556c0dcc633c0ea0050e476798..6c1aa7fd4375095dfb4c7de15809fb215fb95128 100644 (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;
            }
index 9ce83e767f2fdeabf6b4a55b8258e99f3fab8a48..ed205bbc3cbb7175622a9960570531cc2d406b07 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    611,
 /**/
     610,
 /**/