From 7802131aa288e2a698108fe18c5e8a77653cdc34 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 28 Oct 2015 20:36:04 -0700 Subject: [PATCH] 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 --- pycomedi/command.pxd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 * -- 2.26.2