Skip to content

Commit

Permalink
use __import__ as the importlib.metadata is introduced on python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatBahram committed Aug 2, 2021
1 parent e7d36e8 commit e8e92f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/clamd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
try:
import importlib

__version__ = importlib.metadata.distribution("clamd").version
__version__ = __import__("pkg_resources").get_distribution("clamd").version
except ImportError:
__version__ = ""

Expand Down

0 comments on commit e8e92f2

Please sign in to comment.