Skip to content

Commit bdf17dc

Browse files
netanelc305kmvanbrunt
authored andcommitted
rl_utils: Verify readline.__doc__ is not None
1 parent fbabd9b commit bdf17dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/rl_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def pyreadline_remove_history_item(pos: int) -> None:
141141

142142
elif 'gnureadline' in sys.modules or 'readline' in sys.modules:
143143
# We don't support libedit. See top of this file for why.
144-
if 'libedit' not in readline.__doc__:
144+
if readline.__doc__ is not None and 'libedit' not in readline.__doc__:
145145
try:
146146
# Load the readline lib so we can access members of it
147147
import ctypes

0 commit comments

Comments
 (0)