diff options
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: """ |