command: Fix except declaration for get_comedi_cmd_pointer
[pycomedi.git] / pycomedi / subdevice_holder.pyx
1 # Copyright
2
3 from pycomedi cimport _comedilib_h
4
5
6 cdef class SubdeviceHolder (object):
7     "Minimal subdevice wrapper to avoid circular imports"
8     def __cinit__(self):
9         self.device = None
10         self.index = -1
11
12     def __init__(self, device, index):
13         super(SubdeviceHolder, self).__init__()
14         self.device = device
15         self.index = index
16
17     cdef _comedilib_h.comedi_t * _device(self) except *:
18         return self.device.device