mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
merge 3.4 (#11709)
This commit is contained in:
commit
eac219436c
3 changed files with 13 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue