diff options
author | Stefan Krah <skrah@bytereef.org> | 2014-08-26 18:47:32 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2014-08-26 18:47:32 (GMT) |
commit | 9ea83cff473a8dea3fa4c34e0036c3de3e09b77e (patch) | |
tree | 20f2e96d0b19c4f633273ff6e5ee3204fa4985bc /Lib/decimal.py | |
parent | e863739e61996f5bf48a14b2fe69a95d23fe45e0 (diff) | |
parent | 298131a44896a4fec1ea829814ad52409d59aba5 (diff) | |
download | cpython-9ea83cff473a8dea3fa4c34e0036c3de3e09b77e.zip cpython-9ea83cff473a8dea3fa4c34e0036c3de3e09b77e.tar.gz cpython-9ea83cff473a8dea3fa4c34e0036c3de3e09b77e.tar.bz2 |
Merge 3.4.
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index 6d0b34c..44d4406 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -3759,6 +3759,8 @@ class Decimal(object): if self._is_special: sign = _format_sign(self._sign, spec) body = str(self.copy_abs()) + if spec['type'] == '%': + body += '%' return _format_align(sign, body, spec) # a type of None defaults to 'g' or 'G', depending on context |