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
2 months ago
..
compat compat: fix Py2.4 SyntaxError 5 years ago
__init__.py Start v0.3.6 development 3 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: Raise TypeError on `mitogen.utils.cast(custom_str)` failures 2 months ago