diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-28 17:03:33 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-28 17:03:33 -0400 |
commit | d2f624649341a302238e981865eef844424d8288 (patch) | |
tree | c330523841d578765e3cc4bca9f94b0aca54cd6d /cmd2/cmd2.py | |
parent | 2e22d3c8ad4bb254a48dd7a0a6a93fb22f957aff (diff) | |
download | cmd2-git-d2f624649341a302238e981865eef844424d8288.tar.gz |
Addressing code review comments
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 8 |
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: |