summaryrefslogtreecommitdiffstats
path: root/Lib/decimal.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py2
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