diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-01-31 18:21:31 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-01-31 18:21:31 -0500 |
commit | 8d648532295d131898b392032d13cd1b13e639af (patch) | |
tree | b72eb7774af41d4e706afa56bd70c487b8264a65 /docs/refman | |
parent | 0185f2ed61290715f990f786597f3b73a36e678f (diff) | |
download | meson-8d648532295d131898b392032d13cd1b13e639af.zip meson-8d648532295d131898b392032d13cd1b13e639af.tar.gz meson-8d648532295d131898b392032d13cd1b13e639af.tar.bz2 |
doc: fix regression that deleted all methods from the reference manual
Regressed in commit bfb12222c3f64c4dac45fa526a355fffa74dbecd.
This needs to iterate over all methods, process them, and add them to a
list. Instead, it deleted all methods, processed all remaining methods,
and appended them to the in-use iterator.
Use a second list, instead.
Fixes #9922
Diffstat (limited to 'docs/refman')
-rw-r--r-- | docs/refman/loaderyaml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/refman/loaderyaml.py b/docs/refman/loaderyaml.py index e632741..8f56d79 100644 --- a/docs/refman/loaderyaml.py +++ b/docs/refman/loaderyaml.py @@ -274,12 +274,12 @@ class LoaderYAML(LoaderBase): methods = raw.pop('methods', []) obj = Object(methods=[], obj_type=obj_type, **raw) - methods = [] + newmethods = [] for x in methods: if not self.strict: x = {**self.template.s_function, **x} - methods += [self._process_function_base(x, obj)] - obj.methods = as_methods(methods) + newmethods += [self._process_function_base(x, obj)] + obj.methods = as_methods(newmethods) return obj def _load_module(self, path: Path) -> T.List[Object]: |