mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Remove compatibility with pkg_resources
This commit is contained in:
parent
448d0cea1a
commit
ab54d68ee1
1 changed files with 2 additions and 7 deletions
|
|
@ -1,8 +1,3 @@
|
|||
try:
|
||||
from importlib.metadata import version # New in Python 3.8
|
||||
except ImportError:
|
||||
from pkg_resources import get_distribution # from setuptools, deprecated
|
||||
from importlib.metadata import version
|
||||
|
||||
__version__ = get_distribution("django-axes").version
|
||||
else:
|
||||
__version__ = version("django-axes")
|
||||
__version__ = version("django-axes")
|
||||
|
|
|
|||
Loading…
Reference in a new issue