Skip to content

Commit

Permalink
Remove incompatible Pylint controls (Issue #8)
Browse files Browse the repository at this point in the history
`#pylint: disable=useless-import-alias` is not supported in Pylint 1.9.2
  • Loading branch information
process1183 committed Oct 25, 2018
1 parent 1ee5643 commit de9ec71
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions adafruit_bmp280.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ class Adafruit_BMP280_I2C(Adafruit_BMP280): # pylint: disable=invalid-name
"""Driver for I2C connected BMP280. Default address is 0x77 but another address can be passed
in as an argument"""
def __init__(self, i2c, address=0x77):
# pylint: disable=useless-import-alias
import adafruit_bus_device.i2c_device as i2c_device
self._i2c = i2c_device.I2CDevice(i2c, address)
super().__init__()
Expand All @@ -195,7 +194,6 @@ class Adafruit_BMP280_SPI(Adafruit_BMP280):
"""Driver for SPI connected BMP280. Default clock rate is 100000 but can be changed with
'baudrate'"""
def __init__(self, spi, cs, baudrate=100000):
# pylint: disable=useless-import-alias
import adafruit_bus_device.spi_device as spi_device
self._spi = spi_device.SPIDevice(spi, cs, baudrate=baudrate)
super().__init__()
Expand Down

0 comments on commit de9ec71

Please sign in to comment.