From: W. Trevor King Date: Tue, 20 Mar 2012 01:07:00 +0000 (-0400) Subject: Fix subdevice._device -> subdevice.device in _MMapReadWriteThread._fileno(). X-Git-Tag: 0.5~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a24fc3ba4599999d3d463cdfb4dc2ae77cb866a;p=pycomedi.git Fix subdevice._device -> subdevice.device in _MMapReadWriteThread._fileno(). When I was writing the Cython implementation, I initially tried to keep more things private, before realizing that that wasn't a good idea. This snippit missed the initial transition. --- diff --git a/pycomedi/utility.py b/pycomedi/utility.py index 203a1df..890c845 100644 --- a/pycomedi/utility.py +++ b/pycomedi/utility.py @@ -350,7 +350,7 @@ class _MMapReadWriteThread (_ReadWriteThread): return self.subdevice.get_buffer_size() def _fileno(self): - return self.subdevice._device.fileno() + return self.subdevice.device.fileno() def _action_bytes(self): return self.subdevice.get_buffer_contents()