summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clark IV <starwarsfan2099@gmail.com>2023-05-02 10:20:16 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2023-05-02 15:06:55 -0400
commitadc5a7121002389fd6496f577e46028a689ba9f5 (patch)
tree5cf1617e5d219ea09a51f1670958c4654e92bfea
parent18587ab263fa89509c040ea3bed49656eca926b2 (diff)
downloadcmd2-git-master.tar.gz
Make sys.stdout check clearer.HEADmaster
-rw-r--r--cmd2/rl_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index 8c697715..52feacb9 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -70,7 +70,7 @@ if 'pyreadline3' in sys.modules:
)
# Check if we are running in a terminal
- if sys.stdout and sys.stdout.isatty(): # pragma: no cover
+ if sys.stdout is not None and sys.stdout.isatty(): # pragma: no cover
# noinspection PyPep8Naming,PyUnresolvedReferences
def enable_win_vt100(handle: HANDLE) -> bool:
"""