mirror of
https://github.com/meshtastic/python.git
synced 2026-09-14 06:17:44 -04:00
move logger init to the end of the import block for mesh_interface
This commit is contained in:
1 parent
af4947d020
commit
38b163fa89
1 file changed
+1
-2
@@ -18,8 +18,6 @@ from typing import Any, Callable, Dict, List, Optional, Union
|
||||
|
||||
import google.protobuf.json_format
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
import print_color # type: ignore[import-untyped]
|
||||
except ImportError as e:
|
||||
@@ -49,6 +47,7 @@ from meshtastic.util import (
|
||||
stripnl,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def _timeago(delta_secs: int) -> str:
|
||||
"""Convert a number of seconds in the past into a short, friendly string
|
||||
|
||||
Reference in new issue
Block a user