From bce410a54bee6dd19484b265abf7b16f371d48bb Mon Sep 17 00:00:00 2001 From: Tom O'Hara Date: Sun, 14 Jan 2024 19:51:24 -0600 Subject: [PATCH] makes more_itertools import dynamic --- mezcla/misc_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mezcla/misc_utils.py b/mezcla/misc_utils.py index b1ae4168..fedf3913 100755 --- a/mezcla/misc_utils.py +++ b/mezcla/misc_utils.py @@ -19,7 +19,8 @@ import time # Installed packages -import more_itertools +## NOTE: made dynamic due to import issue during shell-script repo tests +## TODO3: import more_itertools # Local packages from mezcla import debug @@ -232,6 +233,8 @@ def trace_named_objects(level, list_text): def exactly1(items): """Whether one and only one if ITEMS is true""" + ## TEMP: does import here to avoid problem with mezcla package install + import more_itertools # pylint: disable=import-outside-toplevel ok = more_itertools.exactly_n(items, 1) debug.trace(4, f"exactly1({items}) => {ok}") return ok