0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.1.1075: function reference count wrong in Python code

Problem:    Function reference count wrong in Python code.
Solution:   Use "O" instead of "N" for the arguments. (Ben Jackson,
            closes #4188)
This commit is contained in:
Bram Moolenaar
2019-03-30 12:51:22 +01:00
parent bfd3603670
commit de5b380042
2 changed files with 3 additions and 1 deletions

View File

@@ -1210,7 +1210,7 @@ FinderFindSpec(PyObject *self, PyObject *args)
if (!(paths = Vim_GetPaths(self)))
return NULL;
spec = PyObject_CallFunction(py_find_spec, "sNN", fullname, paths, target);
spec = PyObject_CallFunction(py_find_spec, "sOO", fullname, paths, target);
Py_DECREF(paths);