summaryrefslogtreecommitdiff
path: root/Lib/email/policy.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email/policy.py')
-rw-r--r--Lib/email/policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/policy.py b/Lib/email/policy.py
index 88877a2f45..585a752819 100644
--- a/Lib/email/policy.py
+++ b/Lib/email/policy.py
@@ -52,7 +52,7 @@ class _PolicyBase:
def __repr__(self):
args = [ "{}={!r}".format(name, value)
for name, value in self.__dict__.items() ]
- return "{}({})".format(self.__class__.__name__, args if args else '')
+ return "{}({})".format(self.__class__.__name__, ', '.join(args))
def clone(self, **kw):
"""Return a new instance with specified attributes changed.