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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2022-12-02 12:14:00 +01:00
commit a52557570b

View file

@ -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: