summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-03-18 17:11:06 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2009-03-18 17:11:06 +0000
commit1637a68ab5649705809ac1fd844837f24dff4bcc (patch)
tree08261f290f4e7335ad895f777106ce0e54c183e6
parent5326110d0eb7d93439dbe5024595860e1f06736a (diff)
downloadcpython-git-1637a68ab5649705809ac1fd844837f24dff4bcc.tar.gz
Merged revisions 70457 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70457 | antoine.pitrou | 2009-03-18 18:10:04 +0100 (mer., 18 mars 2009) | 3 lines Attempt to fix Solaris buildbot failure on test_locale ........
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
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