]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-119185: Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pa...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 May 2024 15:10:40 +0000 (17:10 +0200)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 15:10:40 +0000 (15:10 +0000)
Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager`

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

Co-authored-by: Thanos <111999343+Sachaa-Thanasius@users.noreply.github.com>
Lib/_pyrepl/pager.py

index af0409c4523bc297ab0c4f1377f2cca359807dd1..1c8c1bb13925e3a7bb345036f5310132be2375d3 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)