chiark / gitweb /
Update for Python 2.7. This is release 1.0.3.
[mLib-python] / selbuf.pyx
index e0586fceed5f0af49ec5e2b59456ea6e61892658..8f6901cdfe68f0eba7570816ab2eafdd3f18ee80 100644 (file)
@@ -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, <void *>me)
     selbuf_disable(&me.b)
     me._line = _checkcallable(lineproc, 'line proc')