ok

Mini Shell

Direktori : /lib64/python3.6/email/__pycache__/
Upload File :
Current File : //lib64/python3.6/email/__pycache__/policy.cpython-36.opt-2.pyc

3


 \�(�@s�ddlZddlmZmZmZmZddlmZddlm	Z	ddl
mZddlm
Z
ddd	d
ddd
dgZejd�ZeGdd
�d
e��Ze�Ze`ejdd�Zejdd�Zejddd�Zejdd�ZdS)�N)�Policy�Compat32�compat32�_extend_docstrings)�_has_surrogates)�HeaderRegistry)�raw_data_manager)�EmailMessagerrr�EmailPolicy�default�strict�SMTP�HTTPz\n|\rcsleZdZeZdZdZe�Ze	Z
�fdd�Zdd�Zdd�Z
d	d
�Zdd�Zd
d�Zdd�Zddd�Z�ZS)r
F�longcs*d|krtj|dt��t�jf|�dS)N�header_factory)�object�__setattr__r�super�__init__)�self�kw)�	__class__��$/usr/lib64/python3.6/email/policy.pyr\szEmailPolicy.__init__cCs|j|jS)N)rZ	max_count)r�namerrr�header_max_countcszEmailPolicy.header_max_countcCs>|djdd�\}}|jd�dj|dd��}||jd�fS)Nr�:�z 	�z
)�split�lstrip�join�rstrip)rZsourcelinesr�valuerrr�header_source_parseus	zEmailPolicy.header_source_parsecCsVt|d�r$|jj�|j�kr$||fSt|t�rFt|j��dkrFtd��||j||�fS)NrrzDHeader values may not contain linefeed or carriage return characters)	�hasattrr�lower�
isinstance�str�len�
splitlines�
ValueErrorr)rrr#rrr�header_store_parse�s

zEmailPolicy.header_store_parsecCs*t|d�r|Sdjtj|��}|j||�S)Nrr)r%r!�linesep_splitterrr)rrr#rrr�header_fetch_parse�s	
zEmailPolicy.header_fetch_parsecCs|j||dd�S)NT)�
refold_binary)�_fold)rrr#rrr�fold�szEmailPolicy.foldcCs0|j|||jdkd�}|jr dnd}|j|d�S)NZ7bit)r/�utf8�ascii�surrogateescape)r0Zcte_typer2�encode)rrr#Zfolded�charsetrrr�fold_binary�szEmailPolicy.fold_binarycs�t|d�r|j|d�S|jr"|jntd��|j�}|jdkp�|jdko�|rft|d�t|�d�kp�t�fdd	�|d
d�D��}|s�|r�t|�r�|j	|dj
|��j|d�S|d|jj
|�|jS)
Nr)Zpolicy�inf�allrr�c3s|]}t|��kVqdS)N)r))�.0�x)�maxlenrr�	<genexpr>�sz$EmailPolicy._fold.<locals>.<genexpr>rrz: )r%r1�max_line_length�floatr*�
refold_sourcer)�anyrrr!�linesep)rrr#r/�linesZrefoldr)r=rr0�s


 zEmailPolicy._fold)F)�__name__�
__module__�__qualname__r	Zmessage_factoryr2rArrrZcontent_managerrrr$r,r.r1r7r0�
__classcell__rr)rrr
s=
T)Zraise_on_defectz
)rC)rCr?)r2)�reZemail._policybaserrrrZemail.utilsrZemail.headerregistryrZemail.contentmanagerrZ
email.messager	�__all__�compiler-r
rrZclonerr
rZSMTPUTF8rrrr�<module>s.
@

Zerion Mini Shell 1.0