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
5c715b08
Commit
5c715b08
authored
Aug 10, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct misspellings of ISO-8859
parent
fa1ce08f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/email/base64mime.py
Lib/email/base64mime.py
+1
-1
Lib/email/quoprimime.py
Lib/email/quoprimime.py
+1
-1
Lib/email/test/test_email.py
Lib/email/test/test_email.py
+2
-2
No files found.
Lib/email/base64mime.py
View file @
5c715b08
...
...
@@ -166,7 +166,7 @@ def decode(s, convert_eols=None):
decoding a text attachment.
This function does not parse a full MIME header value encoded with
base64 (like =?iso-88
95
-1?b?bmloISBuaWgh?=) -- please use the high
base64 (like =?iso-88
59
-1?b?bmloISBuaWgh?=) -- please use the high
level email.header class for that functionality.
"""
if
not
s
:
...
...
Lib/email/quoprimime.py
View file @
5c715b08
...
...
@@ -329,7 +329,7 @@ def header_decode(s):
"""Decode a string encoded with RFC 2045 MIME header `Q' encoding.
This function does not parse a full MIME header value encoded with
quoted-printable (like =?iso-88
95
-1?q?Hello_World?=) -- please use
quoted-printable (like =?iso-88
59
-1?q?Hello_World?=) -- please use
the high level email.header class for that functionality.
"""
s
=
s
.
replace
(
'_'
,
' '
)
...
...
Lib/email/test/test_email.py
View file @
5c715b08
...
...
@@ -1673,9 +1673,9 @@ class TestRFC2047(unittest.TestCase):
def
test_rfc2047_Q_invalid_digits
(
self
):
# issue 10004.
s
=
'=?iso-8
6
59-1?Q?andr=e9=zz?='
s
=
'=?iso-8
8
59-1?Q?andr=e9=zz?='
self
.
assertEqual
(
decode_header
(
s
),
[(
b'andr
\
xe9
=zz'
,
'iso-8
6
59-1'
)])
[(
b'andr
\
xe9
=zz'
,
'iso-8
8
59-1'
)])
# Test the MIMEMessage class
...
...
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