From 8d648532295d131898b392032d13cd1b13e639af Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 31 Jan 2022 18:21:31 -0500 Subject: 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 --- docs/refman/loaderyaml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') 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]: -- cgit v1.1