chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Announce 1.0.2.
[mLib-python]
/
codec.pyx.in
diff --git
a/codec.pyx.in
b/codec.pyx.in
index e68323327b12201a316a7da982a9a98d010a8291..971c8998b94d22b9d2d5d805440be990aaf401eb 100644
(file)
--- 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
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):
_%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
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):
_%PREFIX%_init(&me.ctx)
me.ctx.indent = NULL
def decode(me, text):