summaryrefslogtreecommitdiff
path: root/examples/pirate.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-16 21:16:19 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-16 21:16:19 -0400
commitadd272fb1d446034ed3bb1001939baa3e8cd2bfb (patch)
tree74da1b0c45d23b6c04a53cd4c4989c39f14865c5 /examples/pirate.py
parentbee1fe5e06aa07a2976858d25466ba714c9d9a38 (diff)
downloadcmd2-git-add272fb1d446034ed3bb1001939baa3e8cd2bfb.tar.gz
Updated one example so it can be used properly with default_to_shell
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-xexamples/pirate.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/pirate.py b/examples/pirate.py
index cfe545d6..f3a8fc7a 100755
--- a/examples/pirate.py
+++ b/examples/pirate.py
@@ -29,10 +29,6 @@ class Pirate(Cmd):
self.initial_gold = self.gold
self.prompt = 'arrr> '
- def default(self, line):
- """This handles unknown commands."""
- self.poutput('What mean ye by "{0}"?'.format(line))
-
def precmd(self, line):
"""Runs just before a command line is parsed, but after the prompt is presented."""
self.initial_gold = self.gold