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
a1e7b88e
Commit
a1e7b88e
authored
May 11, 2004
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for message/external-body and for duplicate boundary lines.
parent
fd09d0a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
Lib/email/FeedParser.py
Lib/email/FeedParser.py
+12
-3
No files found.
Lib/email/FeedParser.py
View file @
a1e7b88e
...
...
@@ -306,9 +306,18 @@ class FeedParser:
capturing_preamble
=
False
self
.
_input
.
unreadline
(
line
)
continue
# We saw a boundary separating two parts. Recurse to
# parse this subpart; the input stream points at the
# subpart's first line.
# We saw a boundary separating two parts. Consume any
# multiple boundary lines that may be following. Our
# interpretation of RFC 2046 BNF grammar does not produce
# body parts within such double boundaries.
while
True
:
line
=
self
.
_input
.
readline
()
mo
=
boundaryre
.
match
(
line
)
if
not
mo
:
self
.
_input
.
unreadline
(
line
)
break
# Recurse to parse this subpart; the input stream points
# at the subpart's first line.
self
.
_input
.
push_eof_matcher
(
boundaryre
.
match
)
for
retval
in
self
.
_parsegen
():
if
retval
is
NeedMoreData
:
...
...
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