X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/b3c87d862e8f44754113ee9bf374e9fcfbc9e7ac..b51b6cf0b65c84c7b9e130719beede595cc1bfbd:/selbuf.pyx diff --git a/selbuf.pyx b/selbuf.pyx index b8fae43..4a5a288 100644 --- a/selbuf.pyx +++ b/selbuf.pyx @@ -95,16 +95,12 @@ cdef class SelLineBuffer: def eof(me): return _maybecall(me._eof, ()) -cdef void _selbfunc2(char *s, size_t n, void *arg): +cdef void _selbfunc(char *s, size_t n, void *arg): cdef SelLineBuffer sb sb = arg if s is NULL: sb.eof() else: sb.line(PyString_FromStringAndSize(s, n)) -cdef void _selbfunc(char *s, size_t n, void *arg): - PyEval_AcquireLock() - _selbfunc2(s, n, arg) - PyEval_ReleaseLock() #----- That's all, folks ----------------------------------------------------