summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-03-18 20:26:42 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-03-18 20:26:42 (GMT)
commit6cf17aacbfd08aab5edc73c758647536c1576601 (patch)
tree4cdc85bcba7164d096daf750b5a27853ab233229 /Lib
parentbd7926478de92a2a0ef4440e1a9ae61b706a80d2 (diff)
downloadcpython-6cf17aacbfd08aab5edc73c758647536c1576601.zip
cpython-6cf17aacbfd08aab5edc73c758647536c1576601.tar.gz
cpython-6cf17aacbfd08aab5edc73c758647536c1576601.tar.bz2
svnmerge from trunk for r70457 (sorry, I accidentally deleted the commit message)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 5f7b082..17056b9 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -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