From 0e15fce44b766d8c60b453b5c980a11469c60231 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 16 Oct 2012 14:06:34 -0400 Subject: [PATCH] Strip trailing whitespace. --- doc/demo/insn.py | 2 +- pycomedi/command.pyx | 2 +- pycomedi/constant.pyx | 2 +- pycomedi/subdevice.pyx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/demo/insn.py b/doc/demo/insn.py index c45b67e..aa29958 100755 --- a/doc/demo/insn.py +++ b/doc/demo/insn.py @@ -67,7 +67,7 @@ def run(filename, subdevice, channel, range, aref, num_scans): t1 = insns[0].data[0] + insns[1].data[1]/1e6 t2 = insns[2].data[0] + insns[2].data[1]/1e6 return (t1, insns[1].data, t2) - + def display(t1, data, t2): _LOG.info('initial time: {}'.format(t1)) _LOG.info('final time: {}'.format(t2)) diff --git a/pycomedi/command.pyx b/pycomedi/command.pyx index 7a53835..8b08738 100644 --- a/pycomedi/command.pyx +++ b/pycomedi/command.pyx @@ -29,7 +29,7 @@ import constant as _constant cdef class Command (object): """A Comedi command - >>> from .constant import AREF, CMDF, TRIG_SRC + >>> from .constant import AREF, CMDF, TRIG_SRC >>> from .channel import AnalogChannel >>> from .chanspec import ChanSpec >>> from .device import Device diff --git a/pycomedi/constant.pyx b/pycomedi/constant.pyx index b82dc97..196650a 100644 --- a/pycomedi/constant.pyx +++ b/pycomedi/constant.pyx @@ -451,7 +451,7 @@ UNIT = _Enum('unit', 'UNIT_', translation={'mA':'mA'}) # The mA translation avoids lowercasing to 'ma'. UNIT.append(_NamedInt( name='external', - value=_comedi.RF_EXTERNAL, + value=_comedi.RF_EXTERNAL, doc=('RF_EXTERNAL (value unit is defined by an external reference ' 'channel)'))) diff --git a/pycomedi/subdevice.pyx b/pycomedi/subdevice.pyx index 5735fc0..82febcb 100644 --- a/pycomedi/subdevice.pyx +++ b/pycomedi/subdevice.pyx @@ -259,7 +259,7 @@ cdef class StreamingSubdevice (Subdevice): of the subdevice's supported trigger sources. Other elements in the structure are undefined. """ - cdef _command.Command cmd + cdef _command.Command cmd cmd = _command.Command() ret = _comedilib_h.comedi_get_cmd_src_mask( self.device.device, self.index, cmd.get_comedi_cmd_pointer()) @@ -284,7 +284,7 @@ cdef class StreamingSubdevice (Subdevice): Note that the `ChanSpec` instances in `cmd.chanlist` are not initialized to reasonable values. """ - cdef _command.Command cmd + cdef _command.Command cmd cmd = _command.Command() ret = _comedilib_h.comedi_get_cmd_generic_timed( self.device.device, self.index, cmd.get_comedi_cmd_pointer(), -- 2.26.2