updating for python 3

This commit is contained in:
shrkey
2016-09-29 22:19:25 +01:00
parent 27932106c1
commit d08e939f40
2 changed files with 5 additions and 5 deletions

View File

@@ -19,10 +19,10 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
import logging
import subprocess
import .logging
import .subprocess
import Platform as Platform
import .Platform as Platform
def reverseByteOrder(data):
@@ -93,7 +93,7 @@ class Device(object):
self._address = address
if i2c_interface is None:
# Use pure python I2C interface if none is specified.
import smbus
import .smbus
self._bus = smbus.SMBus(busnum)
else:
# Otherwise use the provided class to create an smbus interface.