We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb63ef4 commit 476ded3Copy full SHA for 476ded3
requirements.txt
@@ -1,3 +1,3 @@
1
termcolor
2
-colorama
+colorama; sys_platform=='win32'
3
shtab>=1.3.10
tldr.py
@@ -15,7 +15,6 @@
15
from urllib.request import urlopen, Request
16
from urllib.error import HTTPError, URLError
17
from termcolor import colored
18
-import colorama # Required for Windows
19
import shtab
20
21
__version__ = "3.3.0"
@@ -624,7 +623,9 @@ def main() -> None:
624
623
625
options = parser.parse_args()
626
627
- colorama.init(strip=options.color)
+ if sys.platform == "win32":
+ import colorama
628
+ colorama.init(strip=options.color)
629
if options.color is False:
630
os.environ["FORCE_COLOR"] = "true"
631
0 commit comments