diff src/if_python3.c @ 4490:dff1542e64f9 v7.3.993

updated for version 7.3.993 Problem: Python: Later patch does things slightly differently. Solution: Adjusted argument type changes. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Tue, 21 May 2013 18:47:21 +0200
parents 89ea7593fc0c
children f74611bfb1b7
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 *);
+static PyObject *BufferDir(PyObject *, 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)
+BufferDir(PyObject *self UNUSED, PyObject *args UNUSED)
 {
     return Py_BuildValue("[sssss]", "name", "number",
 						   "append", "mark", "range");