From fb69631af70e6c6f3996c1ad365ac6038ba52d6d Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 13 Aug 2009 12:05:52 +0000 Subject: Use locale.format_string() for more than one specifier. --- Doc/tutorial/stdlib2.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst index 6f0a6ed..0197a6f 100644 --- a/Doc/tutorial/stdlib2.rst +++ b/Doc/tutorial/stdlib2.rst @@ -61,8 +61,8 @@ formatting numbers with group separators:: >>> x = 1234567.8 >>> locale.format("%d", x, grouping=True) '1,234,567' - >>> locale.format("%s%.*f", (conv['currency_symbol'], - ... conv['frac_digits'], x), grouping=True) + >>> locale.format_string("%s%.*f", (conv['currency_symbol'], + ... conv['frac_digits'], x), grouping=True) '$1,234,567.80' -- cgit v0.12