File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -682,9 +682,8 @@ def main() -> None:
682
682
display_option_length = "long"
683
683
if options .short_options and options .long_options :
684
684
display_option_length = "both"
685
- if sys .platform == "win32" :
686
- import colorama
687
- colorama .init (strip = options .color )
685
+ import colorama
686
+ colorama .init (strip = options .color )
688
687
689
688
if options .color is False :
690
689
os .environ ["FORCE_COLOR" ] = "true"
@@ -749,7 +748,7 @@ def main() -> None:
749
748
and results [0 ][1 ] != "common"
750
749
and not options .platform ):
751
750
print (
752
- f"warning: showing page from platform"
751
+ f"{ colorama . Fore . YELLOW } warning{ colorama . Fore . RESET } : showing page from platform"
753
752
f" '{ results [0 ][1 ]} ', because '{ command } ' does"
754
753
f" not exist in '{ get_platform ()} ' and 'common'."
755
754
)
You can’t perform that action at this time.
0 commit comments