Skip to content

Commit

Permalink
revert removing guard code from importlib_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Jun 13, 2024
1 parent a9f6e2e commit 10926e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions derivative/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import numpy as np
from scipy.special import binom

try:
from importlib.metadata import entry_points
except ImportError:
# if sys.version_info < (3, 10):
if sys.version_info < (3, 10):
from importlib_metadata import entry_points
else:
from importlib.metadata import entry_points

try:
hyperparam_algorithms = entry_points(group="derivative.hyperparam_opt")
Expand Down

0 comments on commit 10926e9

Please sign in to comment.