diff options
author | Federico "fox" Scrinzi <fox91@anche.no> | 2012-07-22 14:52:01 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-07-22 14:52:01 -0700 |
commit | b5f4e8956e5b790d5bfcb14b3d9aabe46347e716 (patch) | |
tree | 180862e3475e74a23efed2aee811c1a6d24e8c92 | |
parent | a1dba60bc5b194cc868d73ae2fb3c046c0869fe1 (diff) | |
download | portage-b5f4e8956e5b790d5bfcb14b3d9aabe46347e716.tar.gz portage-b5f4e8956e5b790d5bfcb14b3d9aabe46347e716.tar.bz2 portage-b5f4e8956e5b790d5bfcb14b3d9aabe46347e716.zip |
get_term_size: check if sys.stderr.isatty()
-rw-r--r-- | pym/portage/output.py | 2 |
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 |