Skip to content

Commit f60ba9f

Browse files
committed
Simplified line of code
1 parent c297e56 commit f60ba9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd2/rl_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ def pyreadline_remove_history_item(pos: int) -> None:
125125
"which readline is not loaded dynamically from a shared library file.")
126126
else:
127127
rl_type = RlType.GNU
128-
if sys.stdout.isatty():
129-
vt100_support = True
128+
vt100_support = sys.stdout.isatty()
130129

131130
# Check if readline was loaded
132131
if rl_type == RlType.NONE: # pragma: no cover

0 commit comments

Comments
 (0)