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 ffb8121 commit 8a41c91Copy full SHA for 8a41c91
fire/formatting_windows.py
@@ -35,7 +35,7 @@ def initialize_or_disable():
35
"""Enables ANSI processing on Windows or disables it as needed."""
36
if HAS_COLORAMA:
37
wrap = True
38
- if sys.stdout.isatty() and platform.release() == '10':
+ if hasattr(sys.stdout, "isatty") and sys.stdout.isatty() and platform.release() == '10':
39
# Enables native ANSI sequences in console.
40
# Windows 10, 2016, and 2019 only.
41
0 commit comments