From fd0199b131b779c3ae262b358ad319c9df9043e4 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Tue, 9 Jan 2024 11:47:48 -0600 Subject: [PATCH] update import --- dbt/common/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt/common/ui.py b/dbt/common/ui.py index 1056df2e..2cc7c5ef 100644 --- a/dbt/common/ui.py +++ b/dbt/common/ui.py @@ -1,4 +1,4 @@ -import os +from os import getenv as os_getenv import sys import textwrap from typing import Dict @@ -13,7 +13,7 @@ # when piped to another process for Linux and MacOS, then it loses the coloring. To combat # that, we will just initialize Colorama when needed on Windows using a non-Unix terminal. -if sys.platform == "win32" and (not os.getenv("TERM") or os.getenv("TERM") == "None"): +if sys.platform == "win32" and (not os_getenv("TERM") or os_getenv("TERM") == "None"): colorama.init(wrap=True) COLORS: Dict[str, str] = {