diff options
author | Barry Warsaw <barry@python.org> | 2004-12-05 03:34:14 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2004-12-05 03:34:14 (GMT) |
commit | 9edcad326e517e26e8383e5c394981ec2f899179 (patch) | |
tree | b5dabe211437e172b778c0fca371b32bd0aa64e4 /Lib/email/__init__.py | |
parent | 80367c45f021f20f687cb1710498f707fe0b1b99 (diff) | |
download | cpython-9edcad326e517e26e8383e5c394981ec2f899179.zip cpython-9edcad326e517e26e8383e5c394981ec2f899179.tar.gz cpython-9edcad326e517e26e8383e5c394981ec2f899179.tar.bz2 |
Fixes for SF #1076485, which I'll apply to the CVS head too. The problem was
caused by a self._input.readline() call that wasn't checking for the
NeedsMoreData marker.
msg_43.txt contains a message that illustrates the problem, when
email.message_from_*() is called. That interface uses the Parser API, which
splits reads into 8192 byte chunks. It so happens that for the test message,
the 8192 chunk falls inside a message/delivery-status, which is where in the
FeedParser the readline() call was that didn't check for NeedsMoreData.
I also added an assert to unreadline() so it'll be more evident if an attempt
to push back NeedsMoreData ever happens again.
Bump the email package version number.
Diffstat (limited to 'Lib/email/__init__.py')
-rw-r--r-- | Lib/email/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/__init__.py b/Lib/email/__init__.py index 6a3f3ac..e622b3f 100644 --- a/Lib/email/__init__.py +++ b/Lib/email/__init__.py @@ -4,7 +4,7 @@ """A package for parsing, handling, and generating email messages.""" -__version__ = '3.0' +__version__ = '3.0+' __all__ = [ 'base64MIME', |