summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2011-06-25 14:58:27 -0700
committerPeter Johnson <peter@tortall.net>2011-06-25 14:58:27 -0700
commit2f6162a0ae7691246677cd63e1e06dfe7264ce2b (patch)
tree31c72ad549606d63337ca9958d6bb32599eb9664
parent19d85dfe8450914a791576840da08248671b398e (diff)
downloadyasm-2f6162a0ae7691246677cd63e1e06dfe7264ce2b.tar.gz
Fix build with recent Cython.
[#216 state:resolved]
-rw-r--r--tools/python-yasm/yasm.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/python-yasm/yasm.pyx b/tools/python-yasm/yasm.pyx
index f9c6ee4d..adbc734e 100644
--- a/tools/python-yasm/yasm.pyx
+++ b/tools/python-yasm/yasm.pyx
@@ -97,7 +97,7 @@ cdef void *__get_voidp(object obj, object forclass) except NULL:
#
cdef class __assoc_data_callback:
cdef yasm_assoc_data_callback *cb
- def __new__(self, destroy, print_):
+ def __cinit__(self, destroy, print_):
self.cb = <yasm_assoc_data_callback *>malloc(sizeof(yasm_assoc_data_callback))
self.cb.destroy = <void (*) (void *)>PyCObject_AsVoidPtr(destroy)
#self.cb.print_ = <void (*) (void *, FILE *, int)>PyCObject_AsVoidPtr(print_)
@@ -107,7 +107,7 @@ cdef class __assoc_data_callback:
cdef class Register:
cdef unsigned long reg
- def __new__(self, reg):
+ def __cinit__(self, reg):
self.reg = reg
include "errwarn.pxi"