fix typo in `_pyrepl.pager`: `plainpager` -> `plain_pager` (#118675)

This commit is contained in:
denballakh 2024-05-07 01:56:28 +03:00 committed by GitHub
parent 5a9eeafa05
commit 040571f258
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ def get_pager() -> Pager:
if not sys.stdin.isatty() or not sys.stdout.isatty(): if not sys.stdin.isatty() or not sys.stdout.isatty():
return plain_pager return plain_pager
if sys.platform == "emscripten": if sys.platform == "emscripten":
return plainpager return plain_pager
use_pager = os.environ.get('MANPAGER') or os.environ.get('PAGER') use_pager = os.environ.get('MANPAGER') or os.environ.get('PAGER')
if use_pager: if use_pager:
if sys.platform == 'win32': # pipes completely broken in Windows if sys.platform == 'win32': # pipes completely broken in Windows