Skip to content

Commit

Permalink
copy over windows compat logic for colored log output (#4474)
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  6fae647
  • Loading branch information
Nathaniel May authored and iknox-fa committed Feb 8, 2022
1 parent a8bc870 commit 5a4f5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dbt/events/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5a4f5f1

Please sign in to comment.