]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] bpo-37755: Use configured output in pydoc instead of pager (GH-15105) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 8 Jun 2024 09:46:25 +0000 (12:46 +0300)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2024 09:46:25 +0000 (09:46 +0000)
commit88f67df22cbd50e884df061be2a106ccd658bf39
tree41d424c4d81799205ec9f26ce1375654bbac5679
parent479655a27a40954f6c6fc92bf4d3773efe5ce551
[3.12] bpo-37755: Use configured output in pydoc instead of pager (GH-15105) (GH-120262)

If the Helper() class was initialized with an output, the topics, keywords
and symbols help still use the pager instead of the output.
Change the behavior so  the output is used if available while keeping the
previous behavior if no output was configured.
(cherry picked from commit 2080425154d235b4b7dcc9a8a2f58e71769125ca)

Co-authored-by: Enrico Tröger <enrico.troeger@uvena.de>
Lib/pydoc.py
Lib/test/test_pydoc/test_pydoc.py
Misc/NEWS.d/next/Library/2024-06-02-13-35-11.gh-issue-81936.ETeW9x.rst [new file with mode: 0644]