We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b7cde commit bd53809Copy full SHA for bd53809
2 files changed
Lib/email/policy.py
@@ -52,7 +52,7 @@ def __init__(self, **kw):
52
def __repr__(self):
53
args = [ "{}={!r}".format(name, value)
54
for name, value in self.__dict__.items() ]
55
- return "{}({})".format(self.__class__.__name__, args if args else '')
+ return "{}({})".format(self.__class__.__name__, ', '.join(args))
56
57
def clone(self, **kw):
58
"""Return a new instance with specified attributes changed.
Misc/NEWS
@@ -30,6 +30,8 @@ Core and Builtins
30
Library
31
-------
32
33
+- Issue #14344: fixed the repr of email.policy objects.
34
+
35
- Issue #11686: Added missing entries to email package __all__ lists
36
(mostly the new Bytes classes).
37
0 commit comments