diff options
author | Eric Lin <anselor@gmail.com> | 2018-06-13 10:59:21 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2018-06-13 10:59:21 -0400 |
commit | c897266b8e9a6bbce8aa577aa46e25ad1baa969d (patch) | |
tree | 64325315df72d811cb172c398645b586ea814245 /cmd2/cmd2.py | |
parent | 3ae71e80e61a908ad0a0dec84ee6496592176022 (diff) | |
download | cmd2-git-c897266b8e9a6bbce8aa577aa46e25ad1baa969d.tar.gz |
Added a check to verify the existence of a descriptive header. Added a constant. Updated example to use the constant.
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 3d2a8afe..75946764 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -50,7 +50,7 @@ from cmd2.parsing import StatementParser, Statement # Set up readline from .rl_utils import rl_type, RlType -if rl_type == RlType.NONE: +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 \n" \ "pyreadline on Windows or gnureadline on Mac.\n\n" @@ -84,7 +84,7 @@ from .argparse_completer import AutoCompleter, ACArgumentParser # Newer versions of pyperclip are released as a single file, but older versions had a more complicated structure try: from pyperclip.exceptions import PyperclipException -except ImportError: +except ImportError: # pragma: no cover # noinspection PyUnresolvedReferences from pyperclip import PyperclipException @@ -121,7 +121,7 @@ ipython_available = True try: # noinspection PyUnresolvedReferences,PyPackageRequirements from IPython import embed -except ImportError: +except ImportError: # pragma: no cover ipython_available = False __version__ = '0.9.2a' |