X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/23bff39b96e98bc1969d275bc7c43e1d6dd28429..376ad06df03e59ebf0796b2f475417150e82252d:/lbuf.pyx diff --git a/lbuf.pyx b/lbuf.pyx index fe9f00e..a66e3a3 100644 --- a/lbuf.pyx +++ b/lbuf.pyx @@ -32,7 +32,7 @@ cdef class LineBuffer: cdef lbuf b cdef _line cdef _eof - def __new__(me, lineproc = None, eofproc = None, *hunoz, **hukairz): + def __cinit__(me, lineproc = None, eofproc = None, *hunoz, **hukairz): lbuf_init(&me.b, _lbfunc, me) me._line = _checkcallable(lineproc, 'line proc') me._eof = _checkcallable(eofproc, 'eof proc')