Skip to content

Commit cfd09a3

Browse files
Minor adjustment to test and news entry
1 parent 67fb193 commit cfd09a3

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/_pyrepl/pager.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_pager() -> Pager:
3636
return lambda text, title='': tempfile_pager(plain(text), 'more <')
3737
if hasattr(os, 'system') and os.system('(pager) 2>/dev/null') == 0:
3838
return lambda text, title='': pipe_pager(text, 'pager', title)
39-
if hasattr(os, 'system') and os.system('(less -?) >/dev/null 2>&1') == 0:
39+
if hasattr(os, 'system') and os.system('(less -V) >/dev/null 2>&1') == 0:
4040
return lambda text, title='': pipe_pager(text, 'less', title)
4141

4242
import tempfile
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the :mod:`pydoc` pager not detecting ``less`` 706 and newer.

‎Misc/NEWS.d/next/Library/2026-10-31-21-34-00.gh-issue-161040.k7_pTD.rst‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)