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 d7979c3597 mitogen: Raise TypeError on `mitogen.utils.cast(custom_str)` failures
If casting a string fails then raise a TypeError. This is potentially an API
breaking change; chosen as the lesser evil vs. allowing silent errors.

`cast()` relies on `bytes(obj)` & `str(obj)` returning the respective
supertype. That's no longer the case for `AnsibleUnsafeBytes` &
`AnsibleUnsafeText`; since fixes/mitigations for  CVE-2023-5764.

fixes #1046, refs #977

See also
- https://github.com/advisories/GHSA-7j69-qfc3-2fq9
- https://github.com/ansible/ansible/pull/82293
6 months ago
..
compat
__init__.py Start v0.3.6 development 6 months ago
buildah.py Remove unused module imports 2 years ago
core.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 6 months ago
debug.py
doas.py
docker.py
fakessh.py Fix lints found by flake8 2 years ago
fork.py
jail.py
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 6 months ago
minify.py
os_fork.py
parent.py mitogen: Workaround CPython importlib PermissionError when cwd is unreadable 6 months ago
podman.py Remove unused module imports 2 years ago
profiler.py
select.py
service.py docs: Fix generation of static website 1 year ago
setns.py
ssh.py
su.py
sudo.py
unix.py
utils.py mitogen: Raise TypeError on `mitogen.utils.cast(custom_str)` failures 6 months ago