Your IP : 3.17.183.187


Current Path : /opt/alt/python35/lib64/python3.5/email/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/email/__pycache__/errors.cpython-35.pyc



��Yf�
�@s#dZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
ee�ZGdd�de�ZGd
d�de	�Z
Gdd�de
�ZGdd�de
�ZGdd�de
�Z
Gdd�de
�ZGdd�de
�ZGdd�de
�ZeZGdd�de
�ZGdd�de
�ZGdd �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�ZGd/d0�d0e�Zd1S)2z email package exception classes.c@seZdZdZdS)�MessageErrorz+Base class for errors in the email package.N)�__name__�
__module__�__qualname__�__doc__�rr�1/opt/alt/python35/lib64/python3.5/email/errors.pyrsrc@seZdZdZdS)�MessageParseErrorz&Base class for message parsing errors.N)rrrrrrrrrsrc@seZdZdZdS)�HeaderParseErrorzError while parsing headers.N)rrrrrrrrr	sr	c@seZdZdZdS)�
BoundaryErrorz#Couldn't find terminating boundary.N)rrrrrrrrr
sr
c@seZdZdZdS)�MultipartConversionErrorz(Conversion to a multipart is prohibited.N)rrrrrrrrrsrc@seZdZdZdS)�CharsetErrorzAn illegal charset was given.N)rrrrrrrrrsrcs+eZdZdZd�fdd�Z�S)�
MessageDefectz Base class for a message defect.Ncs)|dk	rt�j|�||_dS)N)�super�__init__�line)�selfr)�	__class__rrr$szMessageDefect.__init__)rrrrrrr)rrr
!sr
c@seZdZdZdS)�NoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.N)rrrrrrrrr)src@seZdZdZdS)�StartBoundaryNotFoundDefectz+The claimed start boundary was never found.N)rrrrrrrrr,src@seZdZdZdS)�CloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.N)rrrrrrrrr/src@seZdZdZdS)�#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.N)rrrrrrrrr2src@seZdZdZdS)�MisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.N)rrrrrrrrr5src@seZdZdZdS)� MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.N)rrrrrrrrr8src@seZdZdZdS)�!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.N)rrrrrrrrr=src@seZdZdZdS)�-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.N)rrrrrrrrr@src@seZdZdZdS)�UndecodableBytesDefectz0Header contained bytes that could not be decodedN)rrrrrrrrrCsrc@seZdZdZdS)�InvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthN)rrrrrrrrrFsrc@seZdZdZdS)�InvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetN)rrrrrrrrrIsrcs(eZdZdZ�fdd�Z�S)�HeaderDefectzBase class for a header defect.cst�j||�dS)N)rr)r�args�kw)rrrrQszHeaderDefect.__init__)rrrrrrr)rrrNsrc@seZdZdZdS)�InvalidHeaderDefectz+Header is not valid, message gives details.N)rrrrrrrrr!Tsr!c@seZdZdZdS)�HeaderMissingRequiredValuez(A header that must have a value had noneN)rrrrrrrrr"Wsr"cs4eZdZdZ�fdd�Zdd�Z�S)�NonPrintableDefectz8ASCII characters outside the ascii-printable range foundcst�j|�||_dS)N)rr�non_printables)rr$)rrrr]szNonPrintableDefect.__init__cCsdj|j�S)Nz6the following ASCII non-printables found in header: {})�formatr$)rrrr�__str__aszNonPrintableDefect.__str__)rrrrrr&rr)rrr#Zsr#c@seZdZdZdS)�ObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322N)rrrrrrrrr'esr'c@seZdZdZdS)�NonASCIILocalPartDefectz(local_part contains non-ASCII charactersN)rrrrrrrrr(hsr(N)r�	Exceptionrrr	r
�	TypeErrorrr�
ValueErrorr
rrrrrrZMalformedHeaderDefectrrrrrrr!r"r#r'r(rrrr�<module>s2

?>