summaryrefslogtreecommitdiffstats
path: root/Lib/decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-03-17 18:07:41 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-03-17 18:07:41 (GMT)
commit714168248d8d20f124e7249c93c211d478067a36 (patch)
tree78c447531608c9be3800332d48c3d2c4f4f64cb8 /Lib/decimal.py
parent0ac5e636a080269e14a170b6fb0c7ac1414d3178 (diff)
downloadcpython-714168248d8d20f124e7249c93c211d478067a36.zip
cpython-714168248d8d20f124e7249c93c211d478067a36.tar.gz
cpython-714168248d8d20f124e7249c93c211d478067a36.tar.bz2
Merged revisions 70430 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70430 | mark.dickinson | 2009-03-17 18:01:03 +0000 (Tue, 17 Mar 2009) | 3 lines Fix bug in Decimal __format__ method that swapped left and right alignment. ........
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index 3ad80b3..6529cc8 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -5491,9 +5491,9 @@ def _format_align(body, spec_dict):
align = spec_dict['align']
if align == '<':
- result = padding + sign + body
- elif align == '>':
result = sign + body + padding
+ elif align == '>':
+ result = padding + sign + body
elif align == '=':
result = sign + padding + body
else: #align == '^'