From: Antoine Pitrou Date: Wed, 18 Mar 2009 20:26:42 +0000 (+0000) Subject: svnmerge from trunk for r70457 (sorry, I accidentally deleted the commit message) X-Git-Tag: v3.1a2~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cf17aacbfd08aab5edc73c758647536c1576601;p=python svnmerge from trunk for r70457 (sorry, I accidentally deleted the commit message) --- diff --git a/Lib/locale.py b/Lib/locale.py index 5f7b08221e..17056b9df2 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -158,7 +158,7 @@ def _group(s, monetary=False): groups.reverse() return ( left_spaces + thousands_sep.join(groups) + right_spaces, - len(groups) - 1 + len(thousands_sep) * (len(groups) - 1) ) # Strip a given amount of excess padding from the given string