diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-11-30 14:32:17 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-11-30 14:32:17 -0500 |
commit | c3a7380314067f63d62b85710cf5643fdb7347f9 (patch) | |
tree | 22f04d1f80e4e211c98e5bf226d698f3cae5a972 /examples/pirate.py | |
parent | cf70502c48a779a8102e4e0fc5cca2051b2125fc (diff) | |
download | cmd2-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-x | examples/pirate.py | 2 |
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() |