From 85f361c7ebe1da4b37ec47b5b9a89676ab0ce115 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 28 Aug 2019 14:14:48 +0200 Subject: [PATCH] documentation/python: minor cleanup. --- documentation/python.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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] -- 2.30.2