Drop fallback for Python < 3.8
Support for Python 3.7 and older versions was already removed. Change-Id: Ib04c0f1546508747ccd99fcd2df8b0530e50e1ba
This commit is contained in:
parent
60922c8a28
commit
cc8aa27d06
@ -10,16 +10,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
try:
|
import importlib.metadata
|
||||||
# For Python 3.8 and later
|
|
||||||
import importlib.metadata as importlib_metadata
|
|
||||||
except ImportError:
|
|
||||||
# For everyone else
|
|
||||||
import importlib_metadata
|
|
||||||
|
|
||||||
from debtcollector import _utils
|
from debtcollector import _utils
|
||||||
|
|
||||||
__version__ = importlib_metadata.version('debtcollector')
|
__version__ = importlib.metadata.version('debtcollector')
|
||||||
|
|
||||||
|
|
||||||
def deprecate(prefix, postfix=None, message=None,
|
def deprecate(prefix, postfix=None, message=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user