ok

Mini Shell

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

3


 \�:�@s�ddlZddlmZddlmZddlmZdddgZGdd	�d	�Zd
d�Z	dd
�Z
Gdd�deejd�Ze
Gdd�de��Z
e
�ZdS)�N)�header)�charset)�_has_surrogates�Policy�Compat32�compat32cs<eZdZ�fdd�Zdd�Zdd�Zdd�Zd	d
�Z�ZS)�_PolicyBasecsLxF|j�D]:\}}t||�r0tt|�j||�q
tdj||jj���q
WdS)Nz*{!r} is an invalid keyword argument for {})	�items�hasattr�superr�__setattr__�	TypeError�format�	__class__�__name__)�self�kw�name�value)r��)/usr/lib64/python3.6/email/_policybase.py�__init__)s
z_PolicyBase.__init__cCs*dd�|jj�D�}dj|jjdj|��S)NcSsg|]\}}dj||��qS)z{}={!r})r)�.0rrrrr�
<listcomp>8sz(_PolicyBase.__repr__.<locals>.<listcomp>z{}({})z, )�__dict__r	rrr�join)r�argsrrr�__repr__7sz_PolicyBase.__repr__cKsz|jj|j�}x$|jj�D]\}}tj|||�qWx@|j�D]4\}}t||�sdtdj||jj	���tj|||�q>W|S)Nz*{!r} is an invalid keyword argument for {})
r�__new__rr	�objectrr
r
rr)rrZ	newpolicy�attrrrrr�clone<s
z_PolicyBase.clonecCs,t||�rd}nd}t|j|jj|���dS)Nz'{!r} object attribute {!r} is read-onlyz!{!r} object has no attribute {!r})r
�AttributeErrorrrr)rrr�msgrrrrNs
z_PolicyBase.__setattr__cCs|jf|j�S)N)r!r)r�otherrrr�__add__Usz_PolicyBase.__add__)	r�
__module__�__qualname__rrr!rr%�
__classcell__rr)rrrs
rcCs,|jdd�d}|jdd�d}|d|S)N�
�r)�rsplit�split)�docZ	added_docrrr�_append_doc^sr.cCs�|jr(|jjd�r(t|jdj|j�|_xf|jj�D]X\}}|jr4|jjd�r4x<dd�|jD�D](}tt||�d�}|r`t||j�|_Pq`Wq4W|S)N�+rcss |]}|j�D]
}|VqqdS)N)�mro)r�base�crrr�	<genexpr>hsz%_extend_docstrings.<locals>.<genexpr>�__doc__)r4�
startswithr.�	__bases__rr	�getattr)�clsrr r2r-rrr�_extend_docstringscs
r9c@s�eZdZdZdZdZdZdZdZdd�Z	dd	�Z
d
d�Zej
dd
��Zej
dd��Zej
dd��Zej
dd��Zej
dd��ZdS)rFr)Z8bit�NNcCs|jr
|�|j||�dS)N)�raise_on_defect�register_defect)r�obj�defectrrr�
handle_defect�szPolicy.handle_defectcCs|jj|�dS)N)Zdefects�append)rr=r>rrrr<�szPolicy.register_defectcCsdS)Nr)rrrrr�header_max_count�szPolicy.header_max_countcCst�dS)N)�NotImplementedError)r�sourcelinesrrr�header_source_parse�szPolicy.header_source_parsecCst�dS)N)rB)rrrrrr�header_store_parse�szPolicy.header_store_parsecCst�dS)N)rB)rrrrrr�header_fetch_parse�s	zPolicy.header_fetch_parsecCst�dS)N)rB)rrrrrr�fold�s
zPolicy.foldcCst�dS)N)rB)rrrrrr�fold_binaryszPolicy.fold_binary)rr&r'r;�linesep�cte_type�max_line_length�mangle_from_Zmessage_factoryr?r<rA�abc�abstractmethodrDrErFrGrHrrrrrps2

)�	metaclassc@sHeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dS)rTcCs0t|t�s|St|�r(tj|tj|d�S|SdS)N)r�header_name)�
isinstance�strrr�Header�_charset�UNKNOWN8BIT)rrrrrr�_sanitize_headers

zCompat32._sanitize_headercCs>|djdd�\}}|jd�dj|dd��}||jd�fS)Nr�:r*z 	�z
)r,�lstripr�rstrip)rrCrrrrrrD%szCompat32.header_source_parsecCs||fS)Nr)rrrrrrrE1szCompat32.header_store_parsecCs|j||�S)N)rV)rrrrrrrF7szCompat32.header_fetch_parsecCs|j||dd�S)NT)�sanitize)�_fold)rrrrrrrG>sz
Compat32.foldcCs"|j|||jdkd�}|jdd�S)NZ7bit)r[�ascii�surrogateescape)r\rJ�encode)rrrZfoldedrrrrHHs	zCompat32.fold_binarycCs�g}|jd|�t|t�r\t|�rL|r<tj|tj|d�}qZ|j|�d}q`tj||d�}n|}|dk	r�d}|jdk	r||j}|j|j	|j
|d��|j|j
�dj|�S)Nz%s: )rrP)rPr)rI�
maxlinelenrX)r@rQrRrrrSrTrUrKr_rIr)rrrr[�parts�hr`rrrr\Ts&



zCompat32._foldN)rr&r'rLrVrDrErFrGrHr\rrrrrs
)rMZemailrrrTZemail.utilsr�__all__rr.r9�ABCMetarrrrrrr�<module>sL
 f

Zerion Mini Shell 1.0