chiark / gitweb /
*.pyx: Replace __new__ with __cinit__ like the program says.
[mLib-python] / lbuf.pyx
index fe9f00eb677a1988d5f470131df032bc1e80b517..a66e3a3e24fb3bb5ce628891baa1a4412ca686c7 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')