[Python-Dev] cpython: #1874: detect invalid multipart CTE and report it as a defect.
R. David Murray
rdmurray at bitdance.com
Wed Jun 22 23:40:12 CEST 2011
On Wed, 22 Jun 2011 21:40:57 +0200, Georg Brandl <g.brandl at gmx.net> wrote:
> On 22.06.2011 19:48, r.david.murray wrote:
> > diff --git a/Lib/email/errors.py b/Lib/email/errors.py
> > --- a/Lib/email/errors.py
> > +++ b/Lib/email/errors.py
> > @@ -55,3 +55,6 @@
> > class MultipartInvariantViolationDefect(MessageDefect):
> > """A message claimed to be a multipart but no subparts were found."""
> > +
> > +class InvalidMultipartContentTransferEncodingDefect(MessageDefect):
> > + """An invalid content transfer encoding was set on the multipart itself."""
> Dear Mr. Murray,
> thank you very much for competing in the PSU's Longest Class Name in the
> Standard Library competition. Unfortunately, your class name of 45 characters
> has been surpassed by four other contestants.
> However, it is my pleasure to inform you that your entry wins the consolation
> prize for the Longest Exception Name! A framed certificate and a PSU-branded
> wooden keyboard will be delivered to you shortly.
See, there are hidden benefits to following the existing coding
conventions of stdlib modules...
(I initially called it InvalidMultipartCTEDefect, but all of the other
names were spelled out, so....)
R. David Murray http://www.bitdance.com
More information about the Python-Dev