Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: 'pkgutil.find_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead #1111

Open
moreati opened this issue Aug 29, 2024 · 0 comments
Labels
affects-0.3 Issues related to 0.3.X Mitogen releases bug Code feature that hinders desired execution outcome

Comments

@moreati
Copy link
Member

moreati commented Aug 29, 2024

A few cases in mitogen.master

$ ag pkgutil.find_loader
mitogen/master.py
187:        loader = pkgutil.find_loader(fullname)
533:        Find `fullname` using :func:`pkgutil.find_loader`.
540:            loader = pkgutil.find_loader(fullname)
554:            # - get_filename() may throw ImportError if pkgutil.find_loader()

Seen when running the test suite, e.g.

test_prefix_authorized_abspath_bad (file_service_test.FetchTest.test_prefix_authorized_abspath_bad) ... /home/runner/work/mitogen/mitogen/mitogen/master.py:540: DeprecationWarning: 'pkgutil.find_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
  loader = pkgutil.find_loader(fullname)
ok
@moreati moreati added bug Code feature that hinders desired execution outcome affects-0.3 Issues related to 0.3.X Mitogen releases labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-0.3 Issues related to 0.3.X Mitogen releases bug Code feature that hinders desired execution outcome
Projects
None yet
Development

No branches or pull requests

1 participant