[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-02-03 Thread Ronan Pigott
Ronan Pigott added the comment: Any reason a change like this could not be added to a 3.8.x release? Like I pointed out in the PR, pydoc's use of MANPAGER is undocumented and, as far as I'm concerned, incorrect. A lot of software references idiosyncratic _PAGER vars, but pydoc reuses

[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-01-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +serhiy.storchaka versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-01-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17510 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18123 ___ Python tracker ___

[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-01-20 Thread Ronan Pigott
Ronan Pigott added the comment: Actually my previous comment is incorrect, the value of the PAGER is split with the shell as a result of shell=True. There _is_ still an incompatibility with man. I have a value for MANPAGER set like 'env LESS_TERMCAP_mb=^[[01;31m ... less' which becomes

[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-01-20 Thread Ronan Pigott
New submission from Ronan Pigott : pydoc references the value of both MANPAGER and PAGER variables when selecting a command to present the user with documentation. Those values are passed directly to subprocess.Popen. However, MANPAGER may contain arguments that need splitting, and is