diff options
author | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-06 02:25:41 (GMT) |
---|---|---|
committer | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-06 02:25:41 (GMT) |
commit | 575a00b575a26cf06648b522425f9dc5d7bc2a66 (patch) | |
tree | 5ab70086a10ceb6599192545589ed1effee6a166 /Modules | |
parent | becbdec1d9422fa2f1cd81dbe165f796e7b0d46f (diff) | |
download | cpython-575a00b575a26cf06648b522425f9dc5d7bc2a66.zip cpython-575a00b575a26cf06648b522425f9dc5d7bc2a66.tar.gz cpython-575a00b575a26cf06648b522425f9dc5d7bc2a66.tar.bz2 |
Delete Reader_getiter and replace with PyObject_SelfIter.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_csv.c | 9 |
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*/ |