X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/d8d81d1b049836f7d4fae7b0077a8ce9e2fc43ac..5660ad956829d56c168b64839540d9f17476fcce:/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')