Skip to content

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

@moreati

Description

@moreati

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-0.3Issues related to 0.3.X Mitogen releasesbugCode feature that hinders desired execution outcome

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions