fix: fallback to importlib_metadata
on older python
This commit is contained in:
parent
fd94f3e5c6
commit
f871557c9c
|
@ -1,6 +1,9 @@
|
||||||
# -*- coding: utf-8; -*-
|
# -*- coding: utf-8; -*-
|
||||||
|
|
||||||
from importlib.metadata import version
|
try:
|
||||||
|
from importlib.metadata import version
|
||||||
|
except ImportError:
|
||||||
|
from importlib_metadata import version
|
||||||
|
|
||||||
|
|
||||||
__version__ = version('tailbone-mailchimp')
|
__version__ = version('tailbone-mailchimp')
|
||||||
|
|
Loading…
Reference in a new issue