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` (python#118881)

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

The name with no underscore doesn't exist.
  • Loading branch information
Sachaa-Thanasius authored May 20, 2024
1 parent bbb4988 commit 05e1dce
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 05e1dce

Please sign in to comment.