diff options
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 9ec57aa..fe90a01 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -954,6 +954,8 @@ def getpager(): return plainpager 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) if os.environ.has_key('PAGER'): if sys.platform == 'win32': # pipes completely broken in Windows return lambda text: tempfilepager(plain(text), os.environ['PAGER']) |