Skip to content

Commit

Permalink
Fix deprecation warning (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp authored May 6, 2024
1 parent ee3b7b8 commit 5b07d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions evo/tools/settings_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""

import os
import pkgutil
import importlib.util


def get_default_plot_backend() -> str:
Expand All @@ -28,7 +28,7 @@ def get_default_plot_backend() -> str:

backends = {"PyQt5": "Qt5Agg"}
for pkg in backends:
if pkgutil.find_loader(pkg) is not None:
if importlib.util.find_spec(pkg) is not None:
return backends[pkg]
return "TkAgg"

Expand Down
2 changes: 1 addition & 1 deletion evo/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.27.1
v1.27.2

0 comments on commit 5b07d25

Please sign in to comment.