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
740527ab
Commit
740527ab
authored
Jul 17, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issues #23147, #23148: Presumably fixed bugs in folding UnstructuredTokenList.
parents
7905f99a
6c2f1fd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/email/_header_value_parser.py
Lib/email/_header_value_parser.py
+2
-2
No files found.
Lib/email/_header_value_parser.py
View file @
740527ab
...
...
@@ -439,7 +439,7 @@ class UnstructuredTokenList(TokenList):
if
folded
.
append_if_fits
(
part
):
continue
if
part
.
has_fws
:
part
.
fold
(
folded
)
part
.
_
fold
(
folded
)
continue
# It can't be split...we just have to put it on its own line.
folded
.
append
(
tstr
)
...
...
@@ -460,7 +460,7 @@ class UnstructuredTokenList(TokenList):
last_ew
=
len
(
res
)
else
:
tl
=
get_unstructured
(
''
.
join
(
res
[
last_ew
:]
+
[
spart
]))
res
.
append
(
tl
.
as_encoded_word
())
res
.
append
(
tl
.
as_encoded_word
(
charset
))
return
''
.
join
(
res
)
...
...
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