Skip to content

Commit

Permalink
showbase: Suppress deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Oct 15, 2023
1 parent 3059f8f commit 26fae21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion direct/src/showbase/Loader.py
Expand Up @@ -171,7 +171,7 @@ def _loadPythonFileTypes(cls):
if sys.version_info >= (3, 8):
from importlib.metadata import entry_points
eps = entry_points()
if isinstance(eps, dict): # Python 3.8 and 3.9
if sys.version_info < (3, 10):
loaders = eps.get('panda3d.loaders', ())
else:
loaders = eps.select(group='panda3d.loaders')
Expand Down

0 comments on commit 26fae21

Please sign in to comment.