summaryrefslogtreecommitdiff
path: root/examples/pirate.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-11-30 14:32:17 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-11-30 14:32:17 -0500
commitc3a7380314067f63d62b85710cf5643fdb7347f9 (patch)
tree22f04d1f80e4e211c98e5bf226d698f3cae5a972 /examples/pirate.py
parentcf70502c48a779a8102e4e0fc5cca2051b2125fc (diff)
downloadcmd2-git-c3a7380314067f63d62b85710cf5643fdb7347f9.tar.gz
Fixed bug in example caused by a keyword argument being used with dict.get()
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-xexamples/pirate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pirate.py b/examples/pirate.py
index 22274dbf..096133dc 100755
--- a/examples/pirate.py
+++ b/examples/pirate.py
@@ -81,7 +81,7 @@ class Pirate(cmd2.Cmd):
def do_sing(self, arg):
"""Sing a colorful song."""
- color_escape = COLORS.get(self.songcolor, default=Fore.RESET)
+ color_escape = COLORS.get(self.songcolor, Fore.RESET)
self.poutput(arg, color=color_escape)
yo_parser = argparse.ArgumentParser()