Commits

Ben Bass  committed 9d46d54

minor cleanup, bump to 0.14.1

  • Participants
  • Parent commits bdc1711

Comments (0)

Files changed (6)

 pylibftdi changes
 =================
 
+0.14.1
+~~~~~~
+* install - only install the ftdi_osx_driver_* scripts if we're installing
+  to an OS X machine
+
 0.14
 ~~~~
 

File docs/conf.py

 # built documents.
 #
 # The short X.Y version.
-version = '0.14'
+version = '0.14.1'
 # The full version, including alpha/beta/rc tags.
-release = '0.14'
+release = '0.14.1'
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.

File pylibftdi/__init__.py

 rather than a problem with the libftdi library.
 """
 
-__VERSION__ = "0.14"
+__VERSION__ = "0.14.1"
 __AUTHOR__ = "Ben Bass"
 
 

File pylibftdi/bitbang.py

         return self._direction
 
     @direction.setter
-    def direction(self, dir):
-        if not (0 <= dir <= 255):
+    def direction(self, new_dir):
+        if not (0 <= new_dir <= 255):
             raise FtdiError("invalid direction bitmask")
-        self._direction = dir
+        self._direction = new_dir
         if not self.closed:
-            self.ftdi_fn.ftdi_set_bitmode(dir, self.bitbang_mode)
-            self._last_set_dir = dir
+            self.ftdi_fn.ftdi_set_bitmode(new_dir, self.bitbang_mode)
+            self._last_set_dir = new_dir
 
     # port property - 8 bit read/write value
     @property

File pylibftdi/device.py

+"""
+pylibftdi.device - access to individual FTDI devices
+
+Copyright (c) 2010-2014 Ben Bass <benbass@codedstructure.net>
+See LICENSE file for details and (absence of) warranty
+
+pylibftdi: http://bitbucket.org/codedstructure/pylibftdi
+
+"""
 
 import functools
 import itertools
 from ctypes import byref, create_string_buffer, c_char_p
 
 from pylibftdi._base import FtdiError
-from pylibftdi.driver import Driver, USB_VID_LIST, USB_PID_LIST, FTDI_ERROR_DEVICE_NOT_FOUND, BITMODE_RESET, FLUSH_BOTH, FLUSH_INPUT, FLUSH_OUTPUT
+from pylibftdi.driver import (
+        Driver, USB_VID_LIST, USB_PID_LIST,
+        FTDI_ERROR_DEVICE_NOT_FOUND, BITMODE_RESET,
+        FLUSH_BOTH, FLUSH_INPUT, FLUSH_OUTPUT)
 
 
 class Device(object):

File pylibftdi/examples/list_devices.py

     dev_list = []
     for device in Driver().list_devices():
         # list_devices returns bytes rather than strings
-        device = map(lambda x: x.decode('latin1'), device)
+        dev_info = map(lambda x: x.decode('latin1'), device)
         # device must always be this triple
-        vendor, product, serial = device
+        vendor, product, serial = dev_info
         dev_list.append("%s:%s:%s" % (vendor, product, serial))
     return dev_list