From: Vladimír Vondruš Date: Wed, 28 Aug 2019 12:14:48 +0000 (+0200) Subject: documentation/python: minor cleanup. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=85f361c7ebe1da4b37ec47b5b9a89676ab0ce115;p=blog.git documentation/python: minor cleanup. --- diff --git a/documentation/python.py b/documentation/python.py index 761a5e51..ef40ad5e 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -1508,11 +1508,11 @@ def render_module(state: State, path, module, env): page.has_data_details = False # Find itself in the global map, save the summary back there for index - module_entry = state.name_map['.'.join(path)] - module_entry.summary = page.summary + entry = state.name_map['.'.join(path)] + entry.summary = page.summary # Extract docs for all members - for name in module_entry.members: + for name in entry.members: subpath = path + [name] subpath_str = '.'.join(subpath) member_entry = state.name_map[subpath_str] @@ -1588,11 +1588,11 @@ def render_class(state: State, path, class_, env): page.has_data_details = False # Find itself in the global map, save the summary back there for index - module_entry = state.name_map['.'.join(path)] - module_entry.summary = page.summary + entry = state.name_map['.'.join(path)] + entry.summary = page.summary # Extract docs for all members - for name in module_entry.members: + for name in entry.members: subpath = path + [name] subpath_str = '.'.join(subpath) member_entry = state.name_map[subpath_str]