Skip to content

Commit

Permalink
pythongh-119185: Fix typo in _pyrepl.pager: tempfilepager should …
Browse files Browse the repository at this point in the history
…be `tempfile_pager` (pythonGH-118881)

Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager`

The name with no underscore doesn't exist.
(cherry picked from commit 05e1dce)

Co-authored-by: Thanos <[email protected]>
  • Loading branch information
Sachaa-Thanasius authored and miss-islington committed May 20, 2024
1 parent 3a8ab99 commit 3f0adf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/_pyrepl/pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_pager() -> Pager:
if os.environ.get('TERM') in ('dumb', 'emacs'):
return plain_pager
if sys.platform == 'win32':
return lambda text, title='': tempfilepager(plain(text), 'more <')
return lambda text, title='': tempfile_pager(plain(text), 'more <')
if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0:
return lambda text, title='': pipe_pager(text, 'less', title)

Expand Down

0 comments on commit 3f0adf5

Please sign in to comment.