From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C407513800E for ; Sun, 22 Jul 2012 21:53:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63E2BE073E; Sun, 22 Jul 2012 21:53:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 32F50E073E for ; Sun, 22 Jul 2012 21:53:18 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 97D3D1B4242 for ; Sun, 22 Jul 2012 21:53:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7CF51E5436 for ; Sun, 22 Jul 2012 21:53:15 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1342993921.b5f4e8956e5b790d5bfcb14b3d9aabe46347e716.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/output.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: b5f4e8956e5b790d5bfcb14b3d9aabe46347e716 X-VCS-Branch: master Date: Sun, 22 Jul 2012 21:53:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1d027916-acc2-42b5-b114-69e571ad3a42 X-Archives-Hash: e7a225ece0e1ec489c79d775839a9ae9 commit: b5f4e8956e5b790d5bfcb14b3d9aabe46347e716 Author: Federico "fox" Scrinzi anche no> AuthorDate: Sun Jul 22 21:52:01 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Jul 22 21:52:01 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b5f4e895 get_term_size: check if sys.stderr.isatty() --- 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 7550391..c6a7031 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