chiark / gitweb /
documentation/python: minor cleanup.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 28 Aug 2019 12:14:48 +0000 (14:14 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 28 Aug 2019 20:34:23 +0000 (22:34 +0200)
documentation/python.py

index 761a5e51031c3018ad3aaad039cbdb80249c93dd..ef40ad5eb899bda293109e491ed4ce23ab3f7fd3 100755 (executable)
@@ -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]