X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/78911cdb6782ddccef6de3cc913b714e10d2fc14..6deaef4760500e22bf3c3400dbd19437e4c2a71f:/codec.pyx.in diff --git a/codec.pyx.in b/codec.pyx.in index a1199c6..37e0293 100644 --- a/codec.pyx.in +++ b/codec.pyx.in @@ -64,7 +64,7 @@ cdef class %CLASS%Encode: cdef dstr d DCREATE(&d) try: - PyObject_AsReadBuffer(text, &p, &len) + PyObject_AsReadBuffer(text, &p, &len) _%PREFIX%_encode(&me.ctx, p, len, &d) rc = PyString_FromStringAndSize(d.buf, d.len) finally: @@ -95,7 +95,7 @@ cdef class %CLASS%Decode: cdef dstr d DCREATE(&d) try: - PyObject_AsReadBuffer(text, &p, &len) + PyObject_AsReadBuffer(text, &p, &len) _%PREFIX%_decode(&me.ctx, p, len, &d) rc = PyString_FromStringAndSize(d.buf, d.len) finally: