]> granicus.if.org Git - python/commitdiff
Attempt to fix Solaris buildbot failure on test_locale
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 18 Mar 2009 17:10:04 +0000 (17:10 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 18 Mar 2009 17:10:04 +0000 (17:10 +0000)
Lib/locale.py

index f853867c7eea2f8a64e18796b102fa7e1a7eccfd..163b0440e65f7431ea9aa720fb2dad5c98399f87 100644 (file)
@@ -151,7 +151,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