summaryrefslogtreecommitdiff
path: root/examples/unicode_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/unicode_commands.py')
-rwxr-xr-xexamples/unicode_commands.py2
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)."""