Mercurial > vim
diff src/if_python3.c @ 4492:f74611bfb1b7 v7.3.994
updated for version 7.3.994
Problem: Python: using magic constants.
Solution: Use descriptive values for ml_flags. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 May 2013 19:01:55 +0200 |
parents | dff1542e64f9 |
children | 6d517f6e5f0b |
line wrap: on
line diff
--- a/src/if_python3.c +++ b/src/if_python3.c @@ -666,7 +666,7 @@ call_PyType_GenericAlloc(PyTypeObject *t return PyType_GenericAlloc(type,nitems); } -static PyObject *BufferDir(PyObject *, PyObject *); +static PyObject *BufferDir(PyObject *); static PyObject *OutputGetattro(PyObject *, PyObject *); static int OutputSetattro(PyObject *, PyObject *, PyObject *); static PyObject *BufferGetattro(PyObject *, PyObject *); @@ -1091,7 +1091,7 @@ BufferGetattro(PyObject *self, PyObject* } static PyObject * -BufferDir(PyObject *self UNUSED, PyObject *args UNUSED) +BufferDir(PyObject *self UNUSED) { return Py_BuildValue("[sssss]", "name", "number", "append", "mark", "range");