Kaydet (Commit) 96575452 authored tarafından doko@ubuntu.com's avatar doko@ubuntu.com

- Issue #8637: Honor a pager set by the env var MANPAGER (in preference to

  one set by the env var PAGER).
üst 8e4b7ac7
......@@ -1429,7 +1429,8 @@ def getpager():
return plainpager
if not sys.stdin.isatty() or not sys.stdout.isatty():
return plainpager
if 'PAGER' in os.environ:
use_pager = os.environ.get('MANPAGER') or os.environ.get('PAGER')
if use_pager:
if sys.platform == 'win32': # pipes completely broken in Windows
return lambda text: tempfilepager(plain(text), os.environ['PAGER'])
elif os.environ.get('TERM') in ('dumb', 'emacs'):
......
......@@ -10,6 +10,9 @@ What's New in Python 3.6.0 alpha 3
Library
-------
- Issue #8637: Honor a pager set by the env var MANPAGER (in preference to
one set by the env var PAGER).
- Issue #22636: Avoid shell injection problems with
ctypes.util.find_library().
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment