summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-03-18 17:10:04 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-03-18 17:10:04 (GMT)
commit7c33bd5ecba73625a3e48685a62870dd6a9806f1 (patch)
tree292a23647e8d91473b2c930a79ffd425c954a226 /Lib/locale.py
parent6b265f1bf875762ba871028056613d1dd7ab6e11 (diff)
downloadcpython-7c33bd5ecba73625a3e48685a62870dd6a9806f1.zip
cpython-7c33bd5ecba73625a3e48685a62870dd6a9806f1.tar.gz
cpython-7c33bd5ecba73625a3e48685a62870dd6a9806f1.tar.bz2
Attempt to fix Solaris buildbot failure on test_locale
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index f853867..163b044 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