◐ Shell
clean mode source ↗

[3.13] Doc: Strip trailing whitespace in ``pydoc_topics`` (GH-130492) by miss-islington · Pull Request #130635 · python/cpython

Expand Up @@ -143,7 +143,8 @@ def write_documents(self, _docnames: Set[str]) -> None: document.append(doc_ids[label_id]) visitor = TextTranslator(document, builder=self) document.walkabout(visitor) self.topics[topic_label] = visitor.body body = "\n".join(map(str.rstrip, visitor.body.splitlines())) self.topics[topic_label] = body
def finish(self) -> None: topics_repr = "\n".join( Expand Down