]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/busio.py
Allow latest release of black to run
[Adafruit_Blinka-hackapet.git] / src / busio.py
index 17e6c2805ed68fb3fb5c42d3deac7becb60afc18..1cad051eaedfb50ed3c16217acdc4a4a108a3629 100755 (executable)
@@ -127,7 +127,7 @@ class I2C(Lockable):
         in_end=None,
         stop=False
     ):
         in_end=None,
         stop=False
     ):
-        """"Write to a device at specified address from a buffer then read
+        """ "Write to a device at specified address from a buffer then read
         from a device at specified address into a buffer
         """
         return self._i2c.writeto_then_readfrom(
         from a device at specified address into a buffer
         """
         return self._i2c.writeto_then_readfrom(
@@ -293,7 +293,7 @@ class SPI(Lockable):
         except AttributeError:
             raise NotImplementedError(
                 "Frequency attribute not implemented for this platform"
         except AttributeError:
             raise NotImplementedError(
                 "Frequency attribute not implemented for this platform"
-            )
+            ) from AttributeError
 
     def write(self, buf, start=0, end=None):
         """Write to the SPI device"""
 
     def write(self, buf, start=0, end=None):
         """Write to the SPI device"""