X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/23bff39b96e98bc1969d275bc7c43e1d6dd28429..376ad06df03e59ebf0796b2f475417150e82252d:/url.pyx diff --git a/url.pyx b/url.pyx index d4ed121..613630d 100644 --- a/url.pyx +++ b/url.pyx @@ -29,7 +29,7 @@ cdef class URLEncode: cdef url_ectx ctx cdef dstr d - def __new__(me, *hunoz, **hukairz): + def __cinit__(me, *hunoz, **hukairz): url_initenc(&me.ctx) DCREATE(&me.d) def __init__(me, strictp = False, laxp = False, semip = False): @@ -79,7 +79,7 @@ cdef class URLDecode: cdef url_dctx ctx cdef char *p - def __new__(me, *hunoz, **hukairz): + def __cinit__(me, *hunoz, **hukairz): me.p = xstrdup('') url_initdec(&me.ctx, me.p) def __init__(me, char *string, semip = False):