linamh/dev-lang/yasm/files/yasm-1.1.0-cython-0.14.patch

23 lines
719 B
Diff
Raw Normal View History

http://bugs.gentoo.org/show_bug.cgi?id=348587
--- tools/python-yasm/yasm.pyx
+++ tools/python-yasm/yasm.pyx
@@ -97,7 +97,7 @@
#
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 Register:
cdef unsigned long reg
- def __new__(self, reg):
+ def __cinit__(self, reg):
self.reg = reg
include "errwarn.pxi"