From cc8aa27d06a7ba36f0f1870c8f24a01d29961ccc Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 31 Oct 2024 15:35:58 +0900 Subject: [PATCH] Drop fallback for Python < 3.8 Support for Python 3.7 and older versions was already removed. Change-Id: Ib04c0f1546508747ccd99fcd2df8b0530e50e1ba --- debtcollector/__init__.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/debtcollector/__init__.py b/debtcollector/__init__.py index 409ca06..dd085c9 100644 --- a/debtcollector/__init__.py +++ b/debtcollector/__init__.py @@ -10,16 +10,11 @@ # License for the specific language governing permissions and limitations # under the License. -try: - # For Python 3.8 and later - import importlib.metadata as importlib_metadata -except ImportError: - # For everyone else - import importlib_metadata +import importlib.metadata from debtcollector import _utils -__version__ = importlib_metadata.version('debtcollector') +__version__ = importlib.metadata.version('debtcollector') def deprecate(prefix, postfix=None, message=None,