From: Éric Piel Date: Thu, 18 Oct 2012 08:32:48 +0000 (+0200) Subject: fix compilation with cython 0.15.1 X-Git-Tag: 0.6~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f34487982e58ad80576c67b0bdcd99778e3c5573;p=pycomedi.git fix compilation with cython 0.15.1 Need to help cython to find out that a new CalibrationSetting is a CalibrationSetting, otherwise it thinks that its properties are python objects. --- diff --git a/pycomedi/calibration.pyx b/pycomedi/calibration.pyx index f68eb96..248745b 100644 --- a/pycomedi/calibration.pyx +++ b/pycomedi/calibration.pyx @@ -673,7 +673,7 @@ cdef class Calibration (object): return None ret = [] for i in range(self.calibration.num_settings): - s = CalibrationSetting( + s = CalibrationSetting( subdevice=self.device.subdevice( index=self.calibration.settings[i].subdevice)) s.setting = &self.calibration.settings[i]