chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*.pyx: Replace __new__ with __cinit__ like the program says.
[mLib-python]
/
sel-timer.pyx
diff --git
a/sel-timer.pyx
b/sel-timer.pyx
index 6bc4e2813acfa3b1e7429b7bad5e3eeaa041c1c4..24d3d243d32e28cd0d76f679484d6208a9fd45cf 100644
(file)
--- a/
sel-timer.pyx
+++ b/
sel-timer.pyx
@@
-38,7
+38,7
@@
cdef class SelTimer:
cdef int _activep
cdef readonly double time
cdef _timer
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)
cdef timeval tv
_floattotv(&tv, when)
sel_addtimer(&_sel, &me.t, &tv, _timerfunc, <void *>me)