From c00b21768edbe1cd734dd1c85f967e2fde136ec3 Mon Sep 17 00:00:00 2001 From: Richard C Gerkin Date: Tue, 1 Aug 2023 15:03:32 -0400 Subject: [PATCH] Replace imp with importlib --- sciunit/scores/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sciunit/scores/base.py b/sciunit/scores/base.py index 466367a..b86a696 100644 --- a/sciunit/scores/base.py +++ b/sciunit/scores/base.py @@ -1,6 +1,6 @@ """Base class for SciUnit scores.""" -import imp +import importlib import logging import math import sys @@ -16,7 +16,7 @@ # Set up score logger score_logger = logging.getLogger("sciunit_scores") if ipy: - imp.reload(logging) + importlib.reload(logging) sl_handler = logging.StreamHandler(sys.stdout) score_logger.addHandler(sl_handler) score_log_level = config.get("score_log_level", 1)