Merge 3.4.

This commit is contained in:
Stefan Krah 2014-08-26 20:47:32 +02:00
commit 9ea83cff47
3 changed files with 14 additions and 4 deletions

View file

@ -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