mirror of
https://github.com/python/cpython.git
synced 2026-01-05 23:12:38 +00:00
#14344: fixed the repr of email.policy objects.
This commit is contained in:
parent
87b7cdea96
commit
bd53809ee7
2 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ def __init__(self, **kw):
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #14344: fixed the repr of email.policy objects.
|
||||
|
||||
- Issue #11686: Added missing entries to email package __all__ lists
|
||||
(mostly the new Bytes classes).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue