You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/mitogen
Alex Willmer 5ad3d14ceb mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12
importlib.machinery.ModuleSpec and find_spec() were introduced in Python 3.4
under PEP 451. They replace the find_module() API of PEP 302, which was
deprecated from Python 3.4. They were removed in Python 3.12 along with the
imp module.

This change adds support for the PEP 451 APIs. Mitogen should no longer import
imp on Python versions that support ModuleSpec. Tests have been added to cover
the new APIs.

CI jobs have been added to cover Python 3.x on macOS.

Refs #1033
Co-authored-by: Witold Baryluk <witold.baryluk@gmail.com>
3 months ago
..
compat compat: fix Py2.4 SyntaxError 5 years ago
__init__.py Bump version 11 months ago
buildah.py Remove unused module imports 2 years ago
core.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 3 months ago
debug.py [stream-refactor] fix flake8 errors 5 years ago
doas.py remove unused imports flagged by lgtm 5 years ago
docker.py Refactor Stream, introduce quasi-asynchronous connect, much more 5 years ago
fakessh.py Fix lints found by flake8 2 years ago
fork.py Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
jail.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago
kubectl.py Remove unused module imports 2 years ago
lxc.py Remove unused module imports 2 years ago
lxd.py Remove unused module imports 2 years ago
master.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 3 months ago
minify.py Normalize docstring formatting 5 years ago
os_fork.py mitogen: Handle Python 3.10 threading depreactions 2 years ago
parent.py mitogen: Workaround CPython importlib PermissionError when cwd is unreadable 3 months ago
podman.py Remove unused module imports 2 years ago
profiler.py Fix stdlib typos that would cause NameError or AttributeError exceptions 3 years ago
select.py Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
service.py docs: Fix generation of static website 10 months ago
setns.py Refactor Stream, introduce quasi-asynchronous connect, much more 5 years ago
ssh.py ssh: Match newer ssh host key prompt that accepts the fingerprint 4 years ago
su.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago
sudo.py reverted autolinted code 4 years ago
unix.py core: MitogenProtocol.is_privileged was not set in children 5 years ago
utils.py mitogen.utils: Preserve docstring of functions decorated @with_router 2 years ago