File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
.. py:data:: importlib_metadata
17
17
18
- `importlib_metadata <https://importlib-metadata.readthedocs.io/en/latest/>`_ on Python 3.7 and earlier;
19
- :mod:`importlib.metadata` on Python 3.8 and later.
18
+ `importlib_metadata <https://importlib-metadata.readthedocs.io/en/latest/>`_ on Python 3.8 and earlier;
19
+ :mod:`importlib.metadata` on Python 3.9 and later.
20
20
21
21
.. versionadded:: 1.1.0
22
+
23
+ .. versionchanged:: 2.5.0
24
+
25
+ `importlib_metadata <https://importlib-metadata.readthedocs.io/en/latest/>`_ is now used
26
+ on Python 3.8 in place of the stdlib version.
22
27
"""
23
28
#
24
29
# Copyright © 2020 Dominic Davis-Foster <[email protected] >
56
61
# stdlib
57
62
import importlib .resources as importlib_resources
58
63
59
- if sys .version_info [:2 ] < (3 , 8 ): # pragma: no cover (>=py38 )
64
+ if sys .version_info [:2 ] < (3 , 9 ): # pragma: no cover (>=py39 )
60
65
# 3rd party
61
66
import importlib_metadata
62
- else : # pragma: no cover (<py38 )
67
+ else : # pragma: no cover (<py39 )
63
68
# stdlib
64
69
import importlib .metadata as importlib_metadata
65
70
You can’t perform that action at this time.
0 commit comments