o ,º]`ã@s¾dZddlmZddlmZddlmZddlmZGdd„deƒZGdd „d eƒZ Gd d „d e ƒZ Gd d „d e ƒZ Gdd„dee ƒZ Gdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZeZGd d!„d!eƒZGd"d#„d#eƒZGd$d%„d%eƒZGd&d'„d'eƒZGd(d)„d)eƒZGd*d+„d+eƒZGd,d-„d-eƒZGd.d/„d/eƒZGd0d1„d1eƒZ Gd2d3„d3eƒZ!Gd4d5„d5eƒZ"d6S)7z email package exception classes.é)Úunicode_literals)Údivision)Úabsolute_import)Úsuperc@óeZdZdZdS)Ú MessageErrorz+Base class for errors in the email package.N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©r r ú?/usr/lib/python3/dist-packages/future/backports/email/errors.pyr órc@r)ÚMessageParseErrorz&Base class for message parsing errors.Nrr r r rrrrc@r)ÚHeaderParseErrorzError while parsing headers.Nrr r r rrrrc@r)Ú BoundaryErrorz#Couldn't find terminating boundary.Nrr r r rrrrc@r)ÚMultipartConversionErrorz(Conversion to a multipart is prohibited.Nrr r r rrrrc@r)Ú CharsetErrorzAn illegal charset was given.Nrr r r rr rrcs"eZdZdZd‡fdd„ Z‡ZS)Ú MessageDefectz Base class for a message defect.Ncs|dur tƒ |¡||_dS©N)rÚ__init__Úline)Úselfr©Ú __class__r rr(s  zMessageDefect.__init__r©r r r r rÚ __classcell__r r rrr%src@r)ÚNoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.Nrr r r rr-rrc@r)ÚStartBoundaryNotFoundDefectz+The claimed start boundary was never found.Nrr r r rr0rrc@r)ÚCloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nrr r r rr 3rr c@r)Ú#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nrr r r rr!6rr!c@r)ÚMisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nrr r r rr"9rr"c@r)Ú MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nrr r r rr#<rr#c@r)Ú!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nrr r r rr$Arr$c@r)Ú-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nrr r r rr%Drr%c@r)ÚUndecodableBytesDefectz0Header contained bytes that could not be decodedNrr r r rr&Grr&c@r)ÚInvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNrr r r rr'Jrr'c@r)ÚInvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNrr r r rr(Mrr(cs eZdZdZ‡fdd„Z‡ZS)Ú HeaderDefectzBase class for a header defect.cstƒj|i|¤ŽdSr)rr)rÚargsÚkwrr rrUszHeaderDefect.__init__rr r rrr)Rsr)c@r)ÚInvalidHeaderDefectz+Header is not valid, message gives details.Nrr r r rr,Xrr,c@r)ÚHeaderMissingRequiredValuez(A header that must have a value had noneNrr r r rr-[rr-cs(eZdZdZ‡fdd„Zdd„Z‡ZS)ÚNonPrintableDefectz8ASCII characters outside the ascii-printable range foundcstƒ |¡||_dSr)rrÚnon_printables)rr/rr rras  zNonPrintableDefect.__init__cCs d |j¡S)Nz6the following ASCII non-printables found in header: {})Úformatr/)rr r rÚ__str__esÿzNonPrintableDefect.__str__)r r r r rr1rr r rrr.^s r.c@r)ÚObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nrr r r rr2irr2c@r)ÚNonASCIILocalPartDefectz(local_part contains non-ASCII charactersNrr r r rr3lrr3N)#r Ú __future__rrrÚfuture.builtinsrÚ ExceptionrrrrÚ TypeErrorrrÚ ValueErrorrrrr r!r"r#ÚMalformedHeaderDefectr$r%r&r'r(r)r,r-r.r2r3r r r rÚs<