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
106f8e3e
Commit
106f8e3e
authored
Mar 15, 2011
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete comment.
parent
56a9d7e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/email/message.py
Lib/email/message.py
+1
-1
No files found.
Lib/email/message.py
View file @
106f8e3e
...
...
@@ -242,7 +242,7 @@ class Message:
raise
TypeError
(
'Expected list, got %s'
%
type
(
self
.
_payload
))
payload
=
self
.
_payload
cte
=
self
.
get
(
'content-transfer-encoding'
,
''
).
lower
()
# payload
can be bytes here, (I wonder if that is actually a bug?)
# payload
may be bytes here.
if
isinstance
(
payload
,
str
):
if
_has_surrogates
(
payload
):
bpayload
=
payload
.
encode
(
'ascii'
,
'surrogateescape'
)
...
...
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