summaryrefslogtreecommitdiff
path: root/cmd2/rl_utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-11-25 19:23:13 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-11-25 19:23:13 -0500
commitf60ba9f0dc5817f834fb154a2339f65e76116ccc (patch)
tree4585860377f5218158526a789d903a3616925cf3 /cmd2/rl_utils.py
parentc297e567792eeaea26020de7235358e95e22ae0d (diff)
downloadcmd2-git-f60ba9f0dc5817f834fb154a2339f65e76116ccc.tar.gz
Simplified line of code
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r--cmd2/rl_utils.py3
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