From 3a24fc3ba4599999d3d463cdfb4dc2ae77cb866a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 19 Mar 2012 21:07:00 -0400 Subject: [PATCH] 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. --- pycomedi/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.26.2