mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Oh, ok, so plainpager is probably marginally better.
This commit is contained in:
parent
0a66fcb116
commit
5e9eb98ff6
1 changed files with 1 additions and 1 deletions
|
@ -955,7 +955,7 @@ def getpager():
|
||||||
if not sys.stdin.isatty() or not sys.stdout.isatty():
|
if not sys.stdin.isatty() or not sys.stdout.isatty():
|
||||||
return plainpager
|
return plainpager
|
||||||
if os.environ.get('TERM') in ['dumb', 'emacs']:
|
if os.environ.get('TERM') in ['dumb', 'emacs']:
|
||||||
return lambda text: sys.stdout.write(text)
|
return plainpager
|
||||||
if os.environ.has_key('PAGER'):
|
if os.environ.has_key('PAGER'):
|
||||||
if sys.platform == 'win32': # pipes completely broken in Windows
|
if sys.platform == 'win32': # pipes completely broken in Windows
|
||||||
return lambda text: tempfilepager(plain(text), os.environ['PAGER'])
|
return lambda text: tempfilepager(plain(text), os.environ['PAGER'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue