X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/23bff39b96e98bc1969d275bc7c43e1d6dd28429..376ad06df03e59ebf0796b2f475417150e82252d:/codec.pyx.in diff --git a/codec.pyx.in b/codec.pyx.in index e683233..971c899 100644 --- a/codec.pyx.in +++ b/codec.pyx.in @@ -39,7 +39,7 @@ cdef extern from 'mLib/%PREFIX%.h': cdef class %CLASS%Encode: cdef %PREFIX%_ctx ctx - def __new__(me, *hunoz, **hukairz): + def __cinit__(me, *hunoz, **hukairz): _%PREFIX%_init(&me.ctx) me.ctx.indent = NULL def __init__(me, indent = '\n', maxline = 72): @@ -90,7 +90,7 @@ def %PREFIX%_encode(text, *arg, **kw): cdef class %CLASS%Decode: cdef %PREFIX%_ctx ctx - def __new__(me, *hunoz, **hukairz): + def __cinit__(me, *hunoz, **hukairz): _%PREFIX%_init(&me.ctx) me.ctx.indent = NULL def decode(me, text):