]> granicus.if.org Git - python/commitdiff
Oh, ok, so plainpager is probably marginally better.
authorFred Drake <fdrake@acm.org>
Mon, 23 Jul 2001 19:48:10 +0000 (19:48 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 23 Jul 2001 19:48:10 +0000 (19:48 +0000)
Lib/pydoc.py

index fe90a01f8e826c358e6429908b33a73026b57b87..4c7471afbc02c10c80b34c8207692e3787e6c70f 100755 (executable)
@@ -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'])