diff options
author | Fred Drake <fdrake@acm.org> | 2001-07-23 19:48:10 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-07-23 19:48:10 (GMT) |
commit | 5e9eb98ff6217faf00ff4eac44397dc650dd0753 (patch) | |
tree | d375337ccf1216f8dff3ec74d34281c20d192345 /Lib/pydoc.py | |
parent | 0a66fcb11666feb1b01e8a607ebc7dde7f9c451c (diff) | |
download | cpython-5e9eb98ff6217faf00ff4eac44397dc650dd0753.zip cpython-5e9eb98ff6217faf00ff4eac44397dc650dd0753.tar.gz cpython-5e9eb98ff6217faf00ff4eac44397dc650dd0753.tar.bz2 |
Oh, ok, so plainpager is probably marginally better.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index fe90a01..4c7471a 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -955,7 +955,7 @@ def getpager(): if not sys.stdin.isatty() or not sys.stdout.isatty(): return plainpager if os.environ.get('TERM') in ['dumb', 'emacs']: - return lambda text: sys.stdout.write(text) + return plainpager if os.environ.has_key('PAGER'): if sys.platform == 'win32': # pipes completely broken in Windows return lambda text: tempfilepager(plain(text), os.environ['PAGER']) |