Skip to content

Commit 221b8f0

Browse files
authored
fix: support older versions of colorama
1 parent 007f830 commit 221b8f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

copier/tools.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919

2020
from .types import IntSeq
2121

22-
colorama.just_fix_windows_console()
22+
try:
23+
colorama_init = colorama.just_fix_windows_console
24+
except AttributeError:
25+
colorama_init = colorama.init
26+
27+
colorama_init()
2328

2429

2530
class Style:

0 commit comments

Comments
 (0)