]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] Support the "pager" binary in _pyrepl (GH-122878) (#124242)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2024 21:45:43 +0000 (23:45 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 21:45:43 +0000 (23:45 +0200)
commit9e218afc8591e3687855a591ffd5bcb7d9bf1bc7
tree6e744de51b7015d1f138ebd130aecd790abeed24
parentd432fa43b9078784a9306848354941bd0eee158f
[3.13] Support the "pager" binary in _pyrepl (GH-122878) (#124242)

Support the "pager" binary in _pyrepl (GH-122878)

Debian (and derivatives) provide a /usr/bin/pager binary, managed by the
alternatives system, that always points to an available pager utility.
Allow _pyrepl to use it, to follow system policy.

This is a very trivial change, from a patch that Debian has been
carrying since 2.7 era. Seems appropriate to upstream.
https://bugs.debian.org/799555
(cherry picked from commit 426569eb8ca1edaa68026aa2bab6b8d1c9105f93)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Co-authored-by: T. Wouters <thomas@python.org>
Lib/_pyrepl/pager.py
Misc/NEWS.d/next/Core_and_Builtins/2024-09-19-13-17-31.gh-issue-122878.4iFpsB.rst [new file with mode: 0644]