]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119185: Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager...
authorThanos <111999343+Sachaa-Thanasius@users.noreply.github.com>
Mon, 20 May 2024 14:31:43 +0000 (10:31 -0400)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 14:31:43 +0000 (10:31 -0400)
Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager`

The name with no underscore doesn't exist.

Lib/_pyrepl/pager.py

index 6a076b5181d872d06f7c5e73f0eda3c805d74733..1ac733ed3573a4b9bea458785d39ea81cbf5abb9 100644 (file)
@@ -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)