mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-119185: Fix typo in _pyrepl.pager
: tempfilepager
should be tempfile_pager
(#118881)
Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager` The name with no underscore doesn't exist.
This commit is contained in:
parent
bbb49888a7
commit
05e1dce76d
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ def get_pager() -> Pager:
|
||||||
if os.environ.get('TERM') in ('dumb', 'emacs'):
|
if os.environ.get('TERM') in ('dumb', 'emacs'):
|
||||||
return plain_pager
|
return plain_pager
|
||||||
if sys.platform == 'win32':
|
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:
|
if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0:
|
||||||
return lambda text, title='': pipe_pager(text, 'less', title)
|
return lambda text, title='': pipe_pager(text, 'less', title)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue