aboutsummaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorFederico "fox" Scrinzi <fox91@anche.no>2012-07-22 14:52:01 -0700
committerZac Medico <zmedico@gentoo.org>2012-07-22 14:52:01 -0700
commitb5f4e8956e5b790d5bfcb14b3d9aabe46347e716 (patch)
tree180862e3475e74a23efed2aee811c1a6d24e8c92 /pym
parentebuild.5: fix (-) use dep example for bug #427384 (diff)
downloadportage-b5f4e8956e5b790d5bfcb14b3d9aabe46347e716.tar.gz
portage-b5f4e8956e5b790d5bfcb14b3d9aabe46347e716.tar.bz2
portage-b5f4e8956e5b790d5bfcb14b3d9aabe46347e716.zip
get_term_size: check if sys.stderr.isatty()
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index 75503917b..c6a7031d0 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -434,7 +434,7 @@ def get_term_size():
greater than or equal to zero, since a negative COLUMNS variable is
known to prevent some commands from working (see bug #394091).
"""
- if not sys.stdout.isatty():
+ if not (sys.stdout.isatty() or sys.stderr.isatty()):
return (0, 0)
try:
import curses