Skip to content

Commit c3a7380

Browse files
committed
Fixed bug in example caused by a keyword argument being used with dict.get()
1 parent cf70502 commit c3a7380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pirate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def do_quit(self, arg):
8181

8282
def do_sing(self, arg):
8383
"""Sing a colorful song."""
84-
color_escape = COLORS.get(self.songcolor, default=Fore.RESET)
84+
color_escape = COLORS.get(self.songcolor, Fore.RESET)
8585
self.poutput(arg, color=color_escape)
8686

8787
yo_parser = argparse.ArgumentParser()

0 commit comments

Comments
 (0)