chiark / gitweb /
Build system: use new CFD's mdwsetup.py.
[mLib-python] / sel-timer.pyx
index 6bc4e2813acfa3b1e7429b7bad5e3eeaa041c1c4..24d3d243d32e28cd0d76f679484d6208a9fd45cf 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)