Skip to content

Commit

Permalink
Replace imp with importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin authored Aug 1, 2023
1 parent 750ef9a commit c00b217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sciunit/scores/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Base class for SciUnit scores."""

import imp
import importlib
import logging
import math
import sys
Expand All @@ -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)
Expand Down

0 comments on commit c00b217

Please sign in to comment.