diff options
author | Andrew Clark IV <starwarsfan2099@gmail.com> | 2023-05-02 10:20:16 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2023-05-02 15:06:55 -0400 |
commit | adc5a7121002389fd6496f577e46028a689ba9f5 (patch) | |
tree | 5cf1617e5d219ea09a51f1670958c4654e92bfea /cmd2 | |
parent | 18587ab263fa89509c040ea3bed49656eca926b2 (diff) | |
download | cmd2-git-master.tar.gz |
Diffstat (limited to 'cmd2')
-rw-r--r-- | cmd2/rl_utils.py | 2 |
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: """ |