pyrepl.pager: less detection is broken with less >= 706 #161039
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
With less >= 706 pydoc uses more due to changes to the less exit status when called without a filename.
This is unexpected and unnecessary. Patch to follow.
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
pythongh-161039: fix detection of less >= 706 in _pyrepl/pager.py
pythongh-161039: Fix detection of `less >= 706` in `_pyrepl.pager.get…
gh-161039: Fix detection of `less` 706 and later by the `pydoc` pager (…
[3.14] gh-161039: Fix detection of `less` 706 and later by the `pydoc…
[3.15] gh-161039: Fix detection of `less` 706 and later by the `pydoc…