]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
readline(): RFC 2046, section 5.1.2 (and partially 5.1) both state that the
authorBarry Warsaw <barry@python.org>
Thu, 13 May 2004 20:17:51 +0000 (20:17 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 13 May 2004 20:17:51 +0000 (20:17 +0000)
commit4e59bc1e67e5459858d94b7e9fc41dfb0922ea62
tree710616ad76c7806b6ae5d94d86b134096a95d275
parent58eb0fcb8f33e8bfd1f850f42c9efb27e1b48417
readline(): RFC 2046, section 5.1.2 (and partially 5.1) both state that the
parser must recognize outer boundaries in inner parts.  So cruise through the
EOF stack backwards testing each predicate against the current line.

There's still some discussion about whether this is (always) the best thing to
do.  Anthony would rather parse these messages as if the outer boundaries were
ignored.  I think that's counter to the RFC, but might be practically more
useful.  Can you say behavior flag?  (ug).
Lib/email/FeedParser.py