summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py4
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