From f931da1b87f1896660ec58c0e2434125c6306080 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 12 Jun 2020 09:55:57 -0400 Subject: extras: Use "from . import module" for relative imports Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor --- klippy/extras/htu21d.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'klippy/extras/htu21d.py') diff --git a/klippy/extras/htu21d.py b/klippy/extras/htu21d.py index 3c9e0590..dd84bb27 100644 --- a/klippy/extras/htu21d.py +++ b/klippy/extras/htu21d.py @@ -3,6 +3,8 @@ # Copyright (C) 2020 Lucio Tarantino # # This file may be distributed under the terms of the GNU GPLv3 license. +import logging +from . import bus ###################################################################### # NOTE: The implementation requires write support of length 0 @@ -17,9 +19,6 @@ # ###################################################################### -import bus -import logging - HTU21D_I2C_ADDR= 0x40 HTU21D_COMMANDS = { -- cgit v1.2.3-70-g09d2