aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/gentoolkit/equery/__init__.py')
-rw-r--r--pym/gentoolkit/equery/__init__.py4
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']: