From: Fred Drake Date: Mon, 23 Jul 2001 19:48:10 +0000 (+0000) Subject: Oh, ok, so plainpager is probably marginally better. X-Git-Tag: v2.2a3~979 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e9eb98ff6217faf00ff4eac44397dc650dd0753;p=thirdparty%2FPython%2Fcpython.git Oh, ok, so plainpager is probably marginally better. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index fe90a01f8e82..4c7471afbc02 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'])