Drop support for EOL Python 3.7
This commit is contained in:
parent
8d8263ce42
commit
0f59831dc2
6 changed files with 26 additions and 33 deletions
|
@ -23,6 +23,7 @@ from __future__ import annotations
|
|||
import collections
|
||||
import hashlib
|
||||
import html.entities
|
||||
import importlib.metadata
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
|
@ -36,18 +37,11 @@ from xml.dom import Node, minidom
|
|||
|
||||
import httpx
|
||||
|
||||
try:
|
||||
# Python 3.8+
|
||||
import importlib.metadata as importlib_metadata
|
||||
except ImportError:
|
||||
# Python 3.7 and lower
|
||||
import importlib_metadata # type: ignore
|
||||
|
||||
__author__ = "Amr Hassan, hugovk, Mice Pápai"
|
||||
__copyright__ = "Copyright (C) 2008-2010 Amr Hassan, 2013-2021 hugovk, 2017 Mice Pápai"
|
||||
__license__ = "apache2"
|
||||
__email__ = "amr.hassan@gmail.com"
|
||||
__version__ = importlib_metadata.version(__name__)
|
||||
__version__ = importlib.metadata.version(__name__)
|
||||
|
||||
|
||||
# 1 : This error does not exist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue