summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-28 17:03:33 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-28 17:03:33 -0400
commitd2f624649341a302238e981865eef844424d8288 (patch)
treec330523841d578765e3cc4bca9f94b0aca54cd6d
parent2e22d3c8ad4bb254a48dd7a0a6a93fb22f957aff (diff)
downloadcmd2-git-d2f624649341a302238e981865eef844424d8288.tar.gz
Addressing code review comments
-rw-r--r--cmd2/cmd2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index a2c2a46f..7a544850 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2590,7 +2590,7 @@ class Cmd(cmd.Cmd):
func = self.cmd_func(command)
if func and hasattr(func, 'argparser'):
completer = AutoCompleter(getattr(func, 'argparser'), cmd2_app=self)
- matches = completer.complete_command_help(tokens[cmd_index:], text, line, begidx, endidx)
+ matches = completer.complete_command_help(tokens[cmd_index:], text, line, begidx, endidx)
return matches
@@ -3129,15 +3129,15 @@ class Cmd(cmd.Cmd):
sys.argv = orig_args
# Only include the do_ipy() method if IPython is available on the system
- if ipython_available:
+ if ipython_available: # pragma: no cover
@with_argparser(ACArgumentParser())
def do_ipy(self, _: argparse.Namespace) -> None:
"""Enter an interactive IPython shell"""
from .pyscript_bridge import PyscriptBridge
bridge = PyscriptBridge(self)
- banner = 'Entering an embedded IPython shell. Type quit() or <Ctrl>-d to exit.\n'
- banner += 'Run Python code from external files with: run filename.py\n'
+ banner = ('Entering an embedded IPython shell. Type quit or <Ctrl>-d to exit.\n'
+ 'Run Python code from external files with: run filename.py\n')
exit_msg = 'Leaving IPython, back to {}'.format(sys.argv[0])
if self.locals_in_py: