From: Mark Wooding Date: Fri, 28 Jul 2017 23:50:05 +0000 (+0100) Subject: selpk.pyx: Fix bad cut-and-paste in the callback property. X-Git-Tag: 1.1.0~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/commitdiff_plain/bc57ab58b54f99bc1d7a966f853c980c1f31eb3f selpk.pyx: Fix bad cut-and-paste in the callback property. Should have been `packetproc', but was still `lineproc' presumably from cut-and-paste from `selbuf'. --- diff --git a/selpk.pyx b/selpk.pyx index 7e3de7e..ee27302 100644 --- a/selpk.pyx +++ b/selpk.pyx @@ -47,13 +47,13 @@ cdef class SelPacketBuffer: if n <= 0: raise TypeError, 'size must be positive' selpk_want(&me.p, n) - property lineproc: + property packetproc: def __get__(me): - return me._line + return me._packet def __set__(me, proc): - me._line = _checkcallable(proc, 'line proc') + me._packet = _checkcallable(proc, 'packet proc') def __del__(me): - me._line = None + me._packet = None property eofproc: def __get__(me): return me._eof