From c897266b8e9a6bbce8aa577aa46e25ad1baa969d Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Wed, 13 Jun 2018 10:59:21 -0400 Subject: Added a check to verify the existence of a descriptive header. Added a constant. Updated example to use the constant. --- cmd2/cmd2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd2/cmd2.py') 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' -- cgit v1.2.1