diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-18 20:26:42 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-18 20:26:42 (GMT) |
| commit | 6cf17aacbfd08aab5edc73c758647536c1576601 (patch) | |
| tree | 4cdc85bcba7164d096daf750b5a27853ab233229 /Lib/locale.py | |
| parent | bd7926478de92a2a0ef4440e1a9ae61b706a80d2 (diff) | |
| download | cpython-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/locale.py')
| -rw-r--r-- | Lib/locale.py | 2 |
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 |
