summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl
diff options
context:
space:
mode:
authorThanos <111999343+Sachaa-Thanasius@users.noreply.github.com>2024-05-20 14:31:43 (GMT)
committerGitHub <noreply@github.com>2024-05-20 14:31:43 (GMT)
commit05e1dce76d7669e90ab73e7e682360d83b8a0d02 (patch)
treeb48ceaaa112acc7de931fb5919578f113d268471 /Lib/_pyrepl
parentbbb49888a752869ae93423c42039a3a8dfab34d4 (diff)
downloadcpython-05e1dce76d7669e90ab73e7e682360d83b8a0d02.zip
cpython-05e1dce76d7669e90ab73e7e682360d83b8a0d02.tar.gz
cpython-05e1dce76d7669e90ab73e7e682360d83b8a0d02.tar.bz2
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.
Diffstat (limited to 'Lib/_pyrepl')
-rw-r--r--Lib/_pyrepl/pager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pyrepl/pager.py b/Lib/_pyrepl/pager.py
index 6a076b5..1ac733e 100644
--- a/Lib/_pyrepl/pager.py
+++ b/Lib/_pyrepl/pager.py
@@ -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)