You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/07/14 10:56:37 UTC

[airflow] 02/08: Fix is_terminal_support_colors functtion (#9734)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit d44ad0be176ad491c1da246c0b86a9093a3b671f
Author: Kamil BreguĊ‚a <mi...@users.noreply.github.com>
AuthorDate: Sat Jul 11 21:35:48 2020 +0200

    Fix is_terminal_support_colors functtion (#9734)
    
    (cherry picked from commit 861e5e70f1e2dc816b756c60ef26a87ca3105ce9)
---
 airflow/utils/platform.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/utils/platform.py b/airflow/utils/platform.py
index af584d2..3630783 100644
--- a/airflow/utils/platform.py
+++ b/airflow/utils/platform.py
@@ -42,7 +42,7 @@ def is_terminal_support_colors():
     """
     if sys.platform == "win32":
         return False
-    if is_tty():
+    if not is_tty():
         return False
     if "COLORTERM" in os.environ:
         return True