From bc57ab58b54f99bc1d7a966f853c980c1f31eb3f Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 29 Jul 2017 00:50:05 +0100 Subject: [PATCH 1/1] selpk.pyx: Fix bad cut-and-paste in the callback property. Organization: Straylight/Edgeware From: Mark Wooding Should have been `packetproc', but was still `lineproc' presumably from cut-and-paste from `selbuf'. --- selpk.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- [mdw]