diff options
Diffstat (limited to 'examples/unicode_commands.py')
-rwxr-xr-x | examples/unicode_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/unicode_commands.py b/examples/unicode_commands.py index 0a7c5ac7..df02b028 100755 --- a/examples/unicode_commands.py +++ b/examples/unicode_commands.py @@ -16,7 +16,7 @@ class UnicodeApp(cmd2.Cmd): def do_πprint(self, _): """This command prints π to 5 decimal places.""" - self.poutput("π = {0:.6}".format(math.pi)) + self.poutput("π = {:.6}".format(math.pi)) def do_δ½ ε₯½(self, arg): """This command says hello in Chinese (Mandarin).""" |