diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-06-07 20:17:29 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-06-07 20:17:29 -0700 |
commit | eac219436c0503968b47b7e316a2c1a72ed823f7 (patch) | |
tree | a31c889996c183349d837dd9f398d0d7a233a537 /Lib/pydoc.py | |
parent | 10e847bbc7427e85f38191298275eaf14be625e5 (diff) | |
parent | 159824ea2a1872dadef69a229fb294c571d2ac73 (diff) | |
download | cpython-git-eac219436c0503968b47b7e316a2c1a72ed823f7.tar.gz |
merge 3.4 (#11709)
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 cb65aefca4..adb15c4928 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1415,6 +1415,8 @@ def pager(text): def getpager(): """Decide what method to use for paging through text.""" + if not hasattr(sys.stdin, "isatty"): + return plainpager if not hasattr(sys.stdout, "isatty"): return plainpager if not sys.stdin.isatty() or not sys.stdout.isatty(): |