From 5a4f5f14a5c84bc740a9a4ce96d9219a7d4eacf7 Mon Sep 17 00:00:00 2001 From: Nathaniel May Date: Mon, 3 Jan 2022 12:37:36 -0500 Subject: [PATCH] copy over windows compat logic for colored log output (#4474) automatic commit by git-black, original commits: 6fae6470976067d09e15fc9649f1c7d5b65d7c9b --- core/dbt/events/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dbt/events/functions.py b/core/dbt/events/functions.py index aeb129c3d62..e1f0b6ee46e 100644 --- a/core/dbt/events/functions.py +++ b/core/dbt/events/functions.py @@ -60,11 +60,11 @@ colorama.init(wrap=colorama_wrap) -if sys.platform == 'win32' and not os.getenv('TERM'): +if sys.platform == "win32" and not os.getenv("TERM"): colorama_wrap = False colorama_stdout = colorama.AnsiToWin32(sys.stdout).stream -elif sys.platform == 'win32': +elif sys.platform == "win32": colorama_wrap = False colorama.init(wrap=colorama_wrap)