chiark / gitweb /
selpk.pyx: Fix bad cut-and-paste in the callback property.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 28 Jul 2017 23:50:05 +0000 (00:50 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 16 Aug 2017 03:31:32 +0000 (04:31 +0100)
Should have been `packetproc', but was still `lineproc' presumably from
cut-and-paste from `selbuf'.

selpk.pyx

index 7e3de7e..ee27302 100644 (file)
--- 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