*.pyx: Replace __new__ with __cinit__ like the program says.
[mLib-python] / sel-timer.pyx
index 6bc4e28..24d3d24 100644 (file)
@@ -38,7 +38,7 @@ cdef class SelTimer:
   cdef int _activep
   cdef readonly double time
   cdef _timer
-  def __new__(me, double when, timerproc = None, *hunoz, **hukairz):
+  def __cinit__(me, double when, timerproc = None, *hunoz, **hukairz):
     cdef timeval tv
     _floattotv(&tv, when)
     sel_addtimer(&_sel, &me.t, &tv, _timerfunc, <void *>me)