From: Antoine Pitrou Date: Wed, 18 Mar 2009 17:10:04 +0000 (+0000) Subject: Attempt to fix Solaris buildbot failure on test_locale X-Git-Tag: v2.7a1~1841 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c33bd5ecba73625a3e48685a62870dd6a9806f1;p=python Attempt to fix Solaris buildbot failure on test_locale --- diff --git a/Lib/locale.py b/Lib/locale.py index f853867c7e..163b0440e6 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -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