From: Vladimír Vondruš Date: Thu, 5 Sep 2019 18:19:25 +0000 (+0200) Subject: documentation/python: this copypaste is like a cancer. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=090f07f4ead458416f542391a7ff0c9ecd48aa8c;p=blog.git documentation/python: this copypaste is like a cancer. Spreads everywhere. --- diff --git a/documentation/python.py b/documentation/python.py index c7c74440..121e1718 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -2128,9 +2128,9 @@ def render_page(state: State, path, input_filename, env): # Find itself in the global map, save the page title and summary back there # for index - module_entry = state.name_map['.'.join(path)] - module_entry.summary = page.summary - module_entry.name = breadcrumb[-1][0] + entry = state.name_map['.'.join(path)] + entry.summary = page.summary + entry.name = breadcrumb[-1][0] if not state.config['SEARCH_DISABLED']: result = Empty()