B อAา[`ใ@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@seZdZdZdS)ฺ MessageErrorz+Base class for errors in the email package.N)ฺ__name__ฺ __module__ฺ __qualname__ฺ__doc__ฉr r ๚N/opt/alt/python37/lib/python3.7/site-packages/future/backports/email/errors.pyr src@seZdZdZdS)ฺMessageParseErrorz&Base class for message parsing errors.N)rrr r r r r r r sr c@seZdZdZdS)ฺHeaderParseErrorzError while parsing headers.N)rrr r r r r r rsrc@seZdZdZdS)ฺ BoundaryErrorz#Couldn't find terminating boundary.N)rrr r r r r r rsrc@seZdZdZdS)ฺMultipartConversionErrorz(Conversion to a multipart is prohibited.N)rrr r r r r r rsrc@seZdZdZdS)ฺ CharsetErrorzAn illegal charset was given.N)rrr r r r r r r srcs"eZdZdZd‡fdd„ Z‡ZS)ฺ MessageDefectz Base class for a message defect.Ncs|dk rtƒ |ก||_dS)N)rฺ__init__ฺline)ฺselfr)ฺ __class__r r r(s zMessageDefect.__init__)N)rrr r rฺ __classcell__r r )rr r%src@seZdZdZdS)ฺNoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.N)rrr r r r r r r-src@seZdZdZdS)ฺStartBoundaryNotFoundDefectz+The claimed start boundary was never found.N)rrr r r r r r r0src@seZdZdZdS)ฺCloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.N)rrr r r r r r r3src@seZdZdZdS)ฺ#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.N)rrr r r r r r r6src@seZdZdZdS)ฺMisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.N)rrr r r r r r r9src@seZdZdZdS)ฺ MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.N)rrr r r r r r r<src@seZdZdZdS)ฺ!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.N)rrr r r r r r rAsrc@seZdZdZdS)ฺ-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.N)rrr r r r r r rDsrc@seZdZdZdS)ฺUndecodableBytesDefectz0Header contained bytes that could not be decodedN)rrr r r r r r r Gsr c@seZdZdZdS)ฺInvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthN)rrr r r r r r r!Jsr!c@seZdZdZdS)ฺInvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetN)rrr r r r r r r"Msr"cs eZdZdZ‡fdd„Z‡ZS)ฺ HeaderDefectzBase class for a header defect.cstƒj||ŽdS)N)rr)rฺargsฺkw)rr r rUszHeaderDefect.__init__)rrr r rrr r )rr r#Rsr#c@seZdZdZdS)ฺInvalidHeaderDefectz+Header is not valid, message gives details.N)rrr r r r r r r&Xsr&c@seZdZdZdS)ฺHeaderMissingRequiredValuez(A header that must have a value had noneN)rrr r r r r r r'[sr'cs(eZdZdZ‡fdd„Zdd„Z‡ZS)ฺNonPrintableDefectz8ASCII characters outside the ascii-printable range foundcstƒ |ก||_dS)N)rrฺnon_printables)rr))rr r ras zNonPrintableDefect.__init__cCs d |jกS)Nz6the following ASCII non-printables found in header: {})ฺformatr))rr r r ฺ__str__eszNonPrintableDefect.__str__)rrr r rr+rr r )rr r(^s r(c@seZdZdZdS)ฺObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322N)rrr r r r r r r,isr,c@seZdZdZdS)ฺNonASCIILocalPartDefectz(local_part contains non-ASCII charactersN)rrr r r r r r r-lsr-N)#r ฺ __future__rrrZfuture.builtinsrฺ Exceptionrr rrฺ TypeErrorrrฺ ValueErrorrrrrrrrฺMalformedHeaderDefectrrr r!r"r#r&r'r(r,r-r r r r ฺs: