Skip to content

Commit adc5a71

Browse files
Starwarsfan2099kmvanbrunt
authored andcommitted
Make sys.stdout check clearer.
1 parent 18587ab commit adc5a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/rl_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class RlType(Enum):
7070
)
7171

7272
# Check if we are running in a terminal
73-
if sys.stdout and sys.stdout.isatty(): # pragma: no cover
73+
if sys.stdout is not None and sys.stdout.isatty(): # pragma: no cover
7474
# noinspection PyPep8Naming,PyUnresolvedReferences
7575
def enable_win_vt100(handle: HANDLE) -> bool:
7676
"""

0 commit comments

Comments
 (0)