*.pyx: Replace __new__ with __cinit__ like the program says.
[mLib-python] / lbuf.pyx
index fe9f00e..a66e3a3 100644 (file)
--- 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, <void *>me)
     me._line = _checkcallable(lineproc, 'line proc')
     me._eof = _checkcallable(eofproc, 'eof proc')