Skip to content

Commit e8e92f2

Browse files
committed
use __import__ as the importlib.metadata is introduced on python3.8
1 parent e7d36e8 commit e8e92f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/clamd/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
try:
2-
import importlib
3-
4-
__version__ = importlib.metadata.distribution("clamd").version
2+
__version__ = __import__("pkg_resources").get_distribution("clamd").version
53
except ImportError:
64
__version__ = ""
75

0 commit comments

Comments
 (0)