X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/23bff39b96e98bc1969d275bc7c43e1d6dd28429..376ad06df03e59ebf0796b2f475417150e82252d:/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')