Skip to content

Commit

Permalink
Merge pull request #1725 from RuRo/fix-color
Browse files Browse the repository at this point in the history
Initialize `colorama` with `strip=False` to force color for non-tty output.
  • Loading branch information
timothycrosley committed May 11, 2021
2 parents 7e43b80 + b840a33 commit e2a7d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isort/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
colorama_unavailable = True
else:
colorama_unavailable = False
colorama.init()
colorama.init(strip=False)


ADDED_LINE_PATTERN = re.compile(r"\+[^+]")
Expand Down

0 comments on commit e2a7d5f

Please sign in to comment.