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
2022-03-29 13:19:55 +01:00
..
_static docs: remove a little more top margin wastage 2019-02-13 16:02:58 +00:00
_templates Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 2019-11-02 16:46:59 +00:00
images issue #505: docs: add new detail graph for one scenario. 2019-02-09 22:20:47 +00:00
.gitignore
Makefile docs: get rid of autobuild remnant 2019-01-05 20:11:46 +00:00
ansible_detailed.rst Update docs/ansible_detailed.rst 2021-12-12 20:33:00 +01:00
api.rst Add podman connection support 2021-11-12 16:49:49 +02:00
changelog.rst master.ParentEnumerationMethod: Require matching pkg.__name__ 2022-03-29 13:19:55 +01:00
conf.py Bump copyright year and use generic author name (testing Travis) 2021-01-14 20:07:47 +00:00
contributors.rst docs: add new contributor entry 2019-06-03 18:06:17 +01:00
domainrefs.py docs: add domainrefs plugin to make link aliases everywhere \o/ 2019-08-17 18:32:47 +01:00
examples.rst docs: fix example up so it's closer to real code 2018-12-14 03:36:46 +00:00
getting_started.rst Fix for sample in doc 2019-08-01 11:01:14 +01:00
howitworks.rst Fix miscellaneous spelling/formatting 2021-11-09 22:17:16 +00:00
index.rst docs: add domainrefs plugin to make link aliases everywhere \o/ 2019-08-17 18:32:47 +01:00
internals.rst Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 2019-11-02 16:46:59 +00:00
pickle-substitutes.ods
requirements.txt docs: make Sphinx install soft fail on Python 2. 2019-08-12 11:46:37 +01:00
services.rst issue #589: ensure real FileService/PushFileService are in the docs 2019-06-03 18:06:17 +01:00
toc.rst docs: reorder chapters 2019-08-18 01:12:42 +01:00