mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 13:50:25 +09:00
extras: Use "from . import module" for relative imports
Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
# Copyright (C) 2020 Lucio Tarantino <lucio.tarantino@gmail.com>
|
||||
#
|
||||
# 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 = {
|
||||
|
||||
Reference in New Issue
Block a user