Skip to content

Commit

Permalink
Merge branch 'master' of github.com:newville/asteval
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jun 22, 2021
2 parents 175305d + 65ca1c1 commit 2db7d41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion asteval/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
__authors__ = "M. Newville"
__release_version__ = '0.9.24'

from importlib.metadata import version, PackageNotFoundError
try:
# python >=3.8
from importlib.metadata import version, PackageNotFoundError
except ImportError:
# python <3.8
# importlib.metadata not available for python 3.7
from importlib_metadata import version, PackageNotFoundError
try:
__version__ = version("asteval")
except PackageNotFoundError:
Expand Down

0 comments on commit 2db7d41

Please sign in to comment.