summaryrefslogtreecommitdiffstats
path: root/Lib/email/errors.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-05-28 02:20:42 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-05-28 02:20:42 (GMT)
commit7ef3ff3f2ea77f496f5386c3ede74f95001a6009 (patch)
treeab17160f5d03de8fa54f02ceb2b38e3f769156a1 /Lib/email/errors.py
parentd0a0e8e070f1c3c74905627380473f21f5457cfb (diff)
downloadcpython-7ef3ff3f2ea77f496f5386c3ede74f95001a6009.zip
cpython-7ef3ff3f2ea77f496f5386c3ede74f95001a6009.tar.gz
cpython-7ef3ff3f2ea77f496f5386c3ede74f95001a6009.tar.bz2
#12515: email now registers a defect if the MIME end boundary is missing.
This commit also restores the news item for 167256 that it looks like Terry inadvertently deleted. (Either that, or I don't understand now merging works...which is equally possible.)
Diffstat (limited to 'Lib/email/errors.py')
-rw-r--r--Lib/email/errors.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/email/errors.py b/Lib/email/errors.py
index aa836d4..d80b5b9 100644
--- a/Lib/email/errors.py
+++ b/Lib/email/errors.py
@@ -42,6 +42,9 @@ class NoBoundaryInMultipartDefect(MessageDefect):
class StartBoundaryNotFoundDefect(MessageDefect):
"""The claimed start boundary was never found."""
+class CloseBoundaryNotFoundDefect(MessageDefect):
+ """A start boundary was found, but not the corresponding close boundary."""
+
class FirstHeaderLineIsContinuationDefect(MessageDefect):
"""A message had a continuation line as its first header line."""