X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/d8d81d1b049836f7d4fae7b0077a8ce9e2fc43ac..a1ce1458d254a60b64add7f1ca44bd638c872097:/selbuf.pyx diff --git a/selbuf.pyx b/selbuf.pyx index e0586fc..8f6901c 100644 --- a/selbuf.pyx +++ b/selbuf.pyx @@ -29,7 +29,7 @@ cdef class SelLineBuffer: cdef selbuf b cdef _line cdef _eof - def __new__(me, fd, lineproc = None, eofproc = None, *hunoz, **hukairz): + def __cinit__(me, fd, lineproc = None, eofproc = None, *hunoz, **hukairz): selbuf_init(&me.b, &_sel, _getfd(fd), _selbfunc, me) selbuf_disable(&me.b) me._line = _checkcallable(lineproc, 'line proc')