]> granicus.if.org Git - python/commitdiff
svnmerge from trunk for r70457 (sorry, I accidentally deleted the commit message)
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 18 Mar 2009 20:26:42 +0000 (20:26 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 18 Mar 2009 20:26:42 +0000 (20:26 +0000)
Lib/locale.py

index 5f7b08221e171e62218d1dc1b45d22bd3aa7bb7c..17056b9df216fc1076b040e9f2ab962021c50b00 100644 (file)
@@ -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