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/docs
Alex Willmer d2ca8a9423 master.ParentEnumerationMethod: Require matching pkg.__name__
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>

When the requested module (e.g. ansible.module_utils.distro)
- is provided by another module *e.g. distro)
- that itself was a package (e.g. distro 1.7.0)

At runtime
- ansible/module_utils/distro/__init__.py executes
- if https://pypi.org/project/distro/ is present, it's loaded as
ansible.module_utils.distro
- otherwise ansible/module_utils/distro/_distro.py is loaded

ParentEnumerationMethod would wrongly use whatever was in
sys.modules['ansible.module_utils.distro]. Instead we should ascend to
the first parent that has fullname == sys.modules[fullname].__name__.
Then descend to the appropriate .py file on disk.

This bug didn't show up before because until distro 1.7.0 (Feb 2022) the
top-level distro module was a module (distro.py) not a package
(distro/__init__.py)

fixes #906
2 years ago
..
_static docs: remove a little more top margin wastage 5 years ago
_templates Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
images issue #505: docs: add new detail graph for one scenario. 5 years ago
.gitignore docs: fix intensely annoying _prefix, 2 years later. 6 years ago
Makefile docs: get rid of autobuild remnant 5 years ago
ansible_detailed.rst Update docs/ansible_detailed.rst 3 years ago
api.rst Add podman connection support 3 years ago
changelog.rst master.ParentEnumerationMethod: Require matching pkg.__name__ 2 years ago
conf.py Bump copyright year and use generic author name (testing Travis) 3 years ago
contributors.rst docs: add new contributor entry 5 years ago
domainrefs.py docs: add domainrefs plugin to make link aliases everywhere \o/ 5 years ago
examples.rst docs: fix example up so it's closer to real code 6 years ago
getting_started.rst Fix for sample in doc 5 years ago
howitworks.rst Fix miscellaneous spelling/formatting 3 years ago
index.rst docs: add domainrefs plugin to make link aliases everywhere \o/ 5 years ago
internals.rst Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
pickle-substitutes.ods docs: First round of Pickle-likes survey 6 years ago
requirements.txt docs: make Sphinx install soft fail on Python 2. 5 years ago
services.rst issue #589: ensure real FileService/PushFileService are in the docs 5 years ago
toc.rst docs: reorder chapters 5 years ago