From: W. Trevor King Date: Thu, 29 Oct 2015 03:36:04 +0000 (-0700) Subject: command: Fix except declaration for get_comedi_cmd_pointer X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7802131aa288e2a698108fe18c5e8a77653cdc34;p=pycomedi.git command: Fix except declaration for get_comedi_cmd_pointer Avoid: Error compiling Cython file: ------------------------------------------------------------ ... cdef class Command (object): cdef _comedi_h.comedi_cmd _cmd cdef public list _fields cdef _comedi_h.comedi_cmd *get_comedi_cmd_pointer(self) ^ ------------------------------------------------------------ pycomedi/command.pxd:26:30: C method 'get_comedi_cmd_pointer' is declared but not defined Cython is stricter about that sort of thing since 0.22 (2015-02-11) [1]: Mismatching 'except' declarations on signatures in .pxd and .pyx files failed to produce a compile error. [1]: https://github.com/cython/cython/blob/master/CHANGES.rst#022-2015-02-11 --- diff --git a/pycomedi/command.pxd b/pycomedi/command.pxd index 6aef3c7..2cd5332 100644 --- a/pycomedi/command.pxd +++ b/pycomedi/command.pxd @@ -23,4 +23,4 @@ cdef class Command (object): cdef _comedi_h.comedi_cmd _cmd cdef public list _fields - cdef _comedi_h.comedi_cmd *get_comedi_cmd_pointer(self) + cdef _comedi_h.comedi_cmd *get_comedi_cmd_pointer(self) except *