From a52557570bf207eaa87fcb341a407755453d50de Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 2 Dec 2022 12:14:00 +0100 Subject: [PATCH] misc.py: from . import log Do "from . import log" instead of "from jwutils import log". It works and looks cleaner than a module referencing itself. Not entirely sure if that's the way to go, I must admit. Signed-off-by: Jan Lindemann --- tools/python/jwutils/misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/python/jwutils/misc.py b/tools/python/jwutils/misc.py index 27d938e..6c459bf 100644 --- a/tools/python/jwutils/misc.py +++ b/tools/python/jwutils/misc.py @@ -2,11 +2,11 @@ import os, errno, atexit, tempfile, filecmp, inspect, importlib, re -from typing import Set, Iterable +from typing import Iterable -from jwutils import log +from . import log -_tmpfiles: Set[str] = set() +_tmpfiles: set[str] = set() def _cleanup(): for f in _tmpfiles: