summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_csv.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index 32806d4..4c3a3ad 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -642,13 +642,6 @@ static struct PyMemberDef Reader_memberlist[] = {
};
static PyObject *
-Reader_getiter(ReaderObj *self)
-{
- Py_INCREF(self);
- return (PyObject *)self;
-}
-
-static PyObject *
Reader_iternext(ReaderObj *self)
{
PyObject *lineobj;
@@ -814,7 +807,7 @@ static PyTypeObject Reader_Type = {
(inquiry)Reader_clear, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
- (getiterfunc)Reader_getiter, /*tp_iter*/
+ PyObject_SelfIter, /*tp_iter*/
(getiterfunc)Reader_iternext, /*tp_iternext*/
Reader_methods, /*tp_methods*/
Reader_memberlist, /*tp_members*/