Skip to content

Commit

Permalink
Use importlib.metadata (pygal requires 3.8+)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 21, 2023
1 parent fc7d69c commit 34b2fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import traceback
import warnings

from importlib_metadata import entry_points
from importlib.metadata import entry_points

from pygal import maps
from pygal.config import Config
Expand Down
2 changes: 1 addition & 1 deletion pygal/test/test_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with pygal. If not, see <http://www.gnu.org/licenses/>.
"""Map plugins tests are imported here"""

from importlib_metadata import entry_points
from importlib.metadata import entry_points

# Load plugins tests
for entry in entry_points(group="pygal.test.test_maps"):
Expand Down

0 comments on commit 34b2fa1

Please sign in to comment.