Fix subdevice._device -> subdevice.device in _MMapReadWriteThread._fileno().
authorW. Trevor King <wking@drexel.edu>
Tue, 20 Mar 2012 01:07:00 +0000 (21:07 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 20 Mar 2012 01:07:00 +0000 (21:07 -0400)
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

index 203a1dfceb0157c7eca88e72a04853b59e41529f..890c84537669a8ba84238af4290275b6df57c37e 100644 (file)
@@ -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()