summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-07-28 12:10:02 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-07-28 12:10:02 (GMT)
commite4c0799d9c5359b9c5115adf212d452137683c57 (patch)
tree50c4e0bbdc67c33152e81498df06e547fd58a0df /Objects/memoryobject.c
parentb9e36b97f26c945f62bbcd0e903599edae9d3631 (diff)
downloadcpython-e4c0799d9c5359b9c5115adf212d452137683c57.zip
cpython-e4c0799d9c5359b9c5115adf212d452137683c57.tar.gz
cpython-e4c0799d9c5359b9c5115adf212d452137683c57.tar.bz2
Add unused parameter to a METH_NOARGS function.
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r--Objects/memoryobject.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index c7185f0..46a8416 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -1019,7 +1019,7 @@ _memory_release(PyMemoryViewObject *self)
}
static PyObject *
-memory_release(PyMemoryViewObject *self)
+memory_release(PyMemoryViewObject *self, PyObject *noargs)
{
if (_memory_release(self) < 0)
return NULL;
@@ -1064,7 +1064,7 @@ memory_enter(PyObject *self, PyObject *args)
static PyObject *
memory_exit(PyObject *self, PyObject *args)
{
- return memory_release((PyMemoryViewObject *)self);
+ return memory_release((PyMemoryViewObject *)self, NULL);
}
@@ -2639,12 +2639,12 @@ static PyGetSetDef memory_getsetlist[] = {
static PyMethodDef memory_methods[] = {
- {"release", (PyCFunction)memory_release, METH_NOARGS},
+ {"release", (PyCFunction)memory_release, METH_NOARGS, NULL},
{"tobytes", (PyCFunction)memory_tobytes, METH_NOARGS, NULL},
{"tolist", (PyCFunction)memory_tolist, METH_NOARGS, NULL},
{"cast", (PyCFunction)memory_cast, METH_VARARGS|METH_KEYWORDS, NULL},
- {"__enter__", memory_enter, METH_NOARGS},
- {"__exit__", memory_exit, METH_VARARGS},
+ {"__enter__", memory_enter, METH_NOARGS, NULL},
+ {"__exit__", memory_exit, METH_VARARGS, NULL},
{NULL, NULL}
};