diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-25 19:23:13 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-25 19:23:13 -0500 |
commit | f60ba9f0dc5817f834fb154a2339f65e76116ccc (patch) | |
tree | 4585860377f5218158526a789d903a3616925cf3 /cmd2/rl_utils.py | |
parent | c297e567792eeaea26020de7235358e95e22ae0d (diff) | |
download | cmd2-git-f60ba9f0dc5817f834fb154a2339f65e76116ccc.tar.gz |
Simplified line of code
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r-- | cmd2/rl_utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py index 8a92d18e..9a23cbcd 100644 --- a/cmd2/rl_utils.py +++ b/cmd2/rl_utils.py @@ -125,8 +125,7 @@ elif 'gnureadline' in sys.modules or 'readline' in sys.modules: "which readline is not loaded dynamically from a shared library file.") else: rl_type = RlType.GNU - if sys.stdout.isatty(): - vt100_support = True + vt100_support = sys.stdout.isatty() # Check if readline was loaded if rl_type == RlType.NONE: # pragma: no cover |