Skip to content

Commit

Permalink
fix: support older versions of colorama
Browse files Browse the repository at this point in the history
  • Loading branch information
em230418 authored Nov 21, 2023
1 parent 007f830 commit 221b8f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion copier/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@

from .types import IntSeq

colorama.just_fix_windows_console()
try:
colorama_init = colorama.just_fix_windows_console
except AttributeError:
colorama_init = colorama.init

colorama_init()


class Style:
Expand Down

0 comments on commit 221b8f0

Please sign in to comment.