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
e0a39de6
Commit
e0a39de6
authored
Jul 06, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#18380: merge with 3.3.
parents
c2464bf5
2a99d5df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/email/quoprimime.py
Lib/email/quoprimime.py
+1
-1
Lib/test/test_email/test_email.py
Lib/test/test_email/test_email.py
+4
-0
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/email/quoprimime.py
View file @
e0a39de6
...
...
@@ -319,4 +319,4 @@ def header_decode(s):
the high level email.header class for that functionality.
"""
s
=
s
.
replace
(
'_'
,
' '
)
return
re
.
sub
(
r'=[a-fA-F0-9]{2}'
,
_unquote_match
,
s
,
re
.
ASCII
)
return
re
.
sub
(
r'=[a-fA-F0-9]{2}'
,
_unquote_match
,
s
,
flags
=
re
.
ASCII
)
Lib/test/test_email/test_email.py
View file @
e0a39de6
...
...
@@ -4048,6 +4048,10 @@ class TestQuopri(unittest.TestCase):
def
test_header_decode_non_ascii
(
self
):
self
.
_test_header_decode
(
'hello=C7there'
,
'hello
\
xc7
there'
)
def
test_header_decode_re_bug_18380
(
self
):
# Issue 18380: Call re.sub with a positional argument for flags in the wrong position
self
.
assertEqual
(
quoprimime
.
header_decode
(
'=30'
*
257
),
'0'
*
257
)
def
_test_decode
(
self
,
encoded
,
expected_decoded
,
eol
=
None
):
if
eol
is
None
:
decoded
=
quoprimime
.
decode
(
encoded
)
...
...
Misc/ACKS
View file @
e0a39de6
...
...
@@ -871,6 +871,7 @@ Alessandro Moura
Pablo Mouzo
Mher Movsisyan
Ruslan Mstoi
Valentina Mukhamedzhanova
Michael Mulich
Sape Mullender
Sjoerd Mullender
...
...
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