From: "Paul Varner" <fuzzyray@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/equery/
Date: Thu, 6 Sep 2012 21:36:18 +0000 (UTC) [thread overview]
Message-ID: <1346967259.e2e77301eb234aecfa5160d0de7bfda7bbe38a64.fuzzyray@gentoo> (raw)
commit: e2e77301eb234aecfa5160d0de7bfda7bbe38a64
Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 6 21:34:19 2012 +0000
Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Thu Sep 6 21:34:19 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=e2e77301
Remove check of isatty when guessing color.
When going through a pipe, color is already turned off. This allows
color to be restored with the --no-pipe option. If color is not desired
with --no-pipe, then --nocolor should also be specified.
---
pym/gentoolkit/equery/__init__.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py
index a73ef1b..65f3ec1 100644
--- a/pym/gentoolkit/equery/__init__.py
+++ b/pym/gentoolkit/equery/__init__.py
@@ -215,8 +215,8 @@ def initialize_configuration():
CONFIG['termWidth'] = term_width - 1
# Guess color output
- if (CONFIG['color'] == -1 and (not sys.stdout.isatty() or
- os.getenv("NOCOLOR") in ("yes", "true")) or CONFIG['color'] == 0):
+ if (CONFIG['color'] == -1 and os.getenv("NOCOLOR") in ("yes", "true") or
+ CONFIG['color'] == 0):
pp.output.nocolor()
if CONFIG['piping']:
next reply other threads:[~2012-09-06 21:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-06 21:36 Paul Varner [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-08-29 4:04 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/equery/ Brian Dolbec
2014-04-19 18:26 Tobias Heinlein
2013-11-01 18:15 Julian Ospald
2013-08-18 16:31 Brian Dolbec
2013-08-11 17:21 Brian Dolbec
2012-12-22 20:10 Brian Dolbec
2012-08-24 15:53 Paul Varner
2012-06-02 18:53 Brian Dolbec
2012-06-02 18:01 Brian Dolbec
2012-03-19 6:50 Brian Dolbec
2011-12-23 6:25 Brian Dolbec
2011-08-25 7:10 Brian Dolbec
2011-07-14 4:21 Paul Varner
2011-05-20 5:54 Brian Dolbec
2011-05-20 5:27 Paul Varner
2011-05-17 0:38 Brian Dolbec
2011-05-16 16:40 Brian Dolbec
2011-03-18 2:03 Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1346967259.e2e77301eb234aecfa5160d0de7bfda7bbe38a64.fuzzyray@gentoo \
--to=fuzzyray@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox