]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37755: Use configured output in pydoc instead of pager (GH-15105)
authorEnrico Tröger <enrico.troeger@uvena.de>
Sat, 8 Jun 2024 09:19:13 +0000 (11:19 +0200)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2024 09:19:13 +0000 (09:19 +0000)
commit2080425154d235b4b7dcc9a8a2f58e71769125ca
tree385fc4fdcae8ecd448f9b43f3793d574e4af4498
parent95f4db88d5ab7d900f05d0418b2a2e77bf9ff126
bpo-37755: Use configured output in pydoc instead of pager (GH-15105)

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.
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]