From e8e92f2a5f89acc570bdd9ba0dff5c9ac7d640bc Mon Sep 17 00:00:00 2001 From: GreatBahram Date: Mon, 2 Aug 2021 16:53:18 +0430 Subject: [PATCH] use __import__ as the importlib.metadata is introduced on python3.8 --- src/clamd/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/clamd/__init__.py b/src/clamd/__init__.py index 159c02a..d414d33 100644 --- a/src/clamd/__init__.py +++ b/src/clamd/__init__.py @@ -1,7 +1,5 @@ try: - import importlib - - __version__ = importlib.metadata.distribution("clamd").version + __version__ = __import__("pkg_resources").get_distribution("clamd").version except ImportError: __version__ = ""