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
fcc00723
Commit
fcc00723
authored
Feb 07, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19063: the unicode-in-set_payload problem isn't getting fixed in 3.4.
parent
5cfc79de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Lib/email/message.py
Lib/email/message.py
+3
-4
No files found.
Lib/email/message.py
View file @
fcc00723
...
...
@@ -277,8 +277,6 @@ class Message:
"""
if
hasattr
(
payload
,
'encode'
):
if
charset
is
None
:
# We should check for ASCII-only here, but we can't do that
# for backward compatibility reasons. Fixed in 3.4.
self
.
_payload
=
payload
return
if
not
isinstance
(
charset
,
Charset
):
...
...
@@ -326,8 +324,9 @@ class Message:
try
:
cte
(
self
)
except
TypeError
:
# This if is for backward compatibility and will be removed
# in 3.4 when the ascii check is added to set_payload.
# This 'if' is for backward compatibility, it allows unicode
# through even though that won't work correctly if the
# message is serialized.
payload
=
self
.
_payload
if
payload
:
try
:
...
...
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