commit: 84ffe42e52d06fd90a21c93d60dbec7c64b621cf Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Sun Jul 10 01:06:50 2022 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Sun Jul 10 01:06:50 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=84ffe42e
equery: Turn off color when piping is set Bug: https://bugs.gentoo.org/506394 Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> pym/gentoolkit/equery/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py index cecb5be..56b2caa 100644 --- a/pym/gentoolkit/equery/__init__.py +++ b/pym/gentoolkit/equery/__init__.py @@ -228,6 +228,8 @@ def initialize_configuration(): # set extra wide, should disable wrapping unless # there is some extra long text CONFIG["termWidth"] = 600 + # turn off color + pp.output.nocolor() CONFIG["debug"] = bool(os.getenv("DEBUG", False))
