Skip to content

Commit c00b217

Browse files
authored
Replace imp with importlib
1 parent 750ef9a commit c00b217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sciunit/scores/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Base class for SciUnit scores."""
22

3-
import imp
3+
import importlib
44
import logging
55
import math
66
import sys
@@ -16,7 +16,7 @@
1616
# Set up score logger
1717
score_logger = logging.getLogger("sciunit_scores")
1818
if ipy:
19-
imp.reload(logging)
19+
importlib.reload(logging)
2020
sl_handler = logging.StreamHandler(sys.stdout)
2121
score_logger.addHandler(sl_handler)
2222
score_log_level = config.get("score_log_level", 1)

0 commit comments

Comments
 (0)