diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-24 22:15:22 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-24 22:15:22 -0500 |
commit | efa75484c35dc765df425043fb4d2c2672c9c26e (patch) | |
tree | 223dbc37afdec4a70f71fa54df6a312aed88305a /cmd2/cmd2.py | |
parent | aeb517d7249b6f17cbb0d09a1a22f2d689be1d57 (diff) | |
download | cmd2-git-efa75484c35dc765df425043fb4d2c2672c9c26e.tar.gz |
Added exception handling to account for non-standard Python environments in which readline is not loaded dynamically from a shared library file
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 1eeb4212..d949a374 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -52,13 +52,10 @@ from .clipboard import can_clip, get_paste_buffer, write_to_paste_buffer from .decorators import with_argparser from .history import History, HistoryItem from .parsing import StatementParser, Statement, Macro, MacroArg, shlex_split -from .rl_utils import rl_type, RlType, rl_get_point, rl_set_prompt, vt100_support, rl_make_safe_prompt +from .rl_utils import rl_type, RlType, rl_get_point, rl_set_prompt, vt100_support, rl_make_safe_prompt, rl_warning # Set up readline if rl_type == RlType.NONE: # pragma: no cover - rl_warning = ("Readline features including tab completion have been disabled since no\n" - "supported version of readline was found. To resolve this, install pyreadline\n" - "on Windows or gnureadline on Mac.\n\n") sys.stderr.write(ansi.style_warning(rl_warning)) else: from .rl_utils import rl_force_redisplay, readline |