]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] bpo-37755: Use configured output in pydoc instead of pager (GH-15105) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Jun 2024 17:48:47 +0000 (19:48 +0200)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2024 17:48:47 +0000 (17:48 +0000)
commitc15f94d6fbc960790db34c94d49716658ccf6348
tree586ad6790b155e851dec749e2b9fb33e0e666b2a
parentf6689d91b2dc2a9b5f94334ff30abf56bf016ff2
[3.13] bpo-37755: Use configured output in pydoc instead of pager (GH-15105) (GH-120261)

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]