1
0
forked from aniani/vim

updated for version 7.3.994

Problem:    Python: using magic constants.
Solution:   Use descriptive values for ml_flags. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-05-21 19:01:55 +02:00
parent e64faa6645
commit 182dc4f2ab
3 changed files with 31 additions and 29 deletions

View File

@@ -666,7 +666,7 @@ call_PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
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*nameobj)
}
static PyObject *
BufferDir(PyObject *self UNUSED, PyObject *args UNUSED)
BufferDir(PyObject *self UNUSED)
{
return Py_BuildValue("[sssss]", "name", "number",
"append", "mark", "range");