diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-10-30 21:54:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 21:54:10 -0400 |
commit | 1aa8d458dbbe797b29d0bd1fc4208a17adb6d222 (patch) | |
tree | e3b73cef6e9e3b164260e8c380d1f1d30b29dd83 /cmd2 | |
parent | 244af20b72c6581e935e998cb7e08c24feea55f5 (diff) | |
parent | 406f017e2ee99fb76bada7bde4b52c3b0f1aa1d2 (diff) | |
download | cmd2-git-1aa8d458dbbe797b29d0bd1fc4208a17adb6d222.tar.gz |
Merge branch 'master' into history_edit
Diffstat (limited to 'cmd2')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 6170b4d0..1af5e932 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -368,10 +368,10 @@ class Cmd(cmd.Cmd): :param shortcuts: dictionary containing shortcuts for commands. If not supplied, then defaults to constants.DEFAULT_SHORTCUTS. """ - # If use_ipython is False, make sure the do_ipy() method doesn't exit + # If use_ipython is False, make sure the ipy command isn't available in this instance if not use_ipython: try: - del Cmd.do_ipy + self.do_ipy = None except AttributeError: pass |