Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bd53809e
Commit
bd53809e
authored
Mar 17, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14344: fixed the repr of email.policy objects.
parent
87b7cdea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/email/policy.py
Lib/email/policy.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/email/policy.py
View file @
bd53809e
...
...
@@ -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.
...
...
Misc/NEWS
View file @
bd53809e
...
...
@@ -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
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment