ok
Direktori : /lib64/python3.6/__pycache__/ |
Current File : //lib64/python3.6/__pycache__/quopri.cpython-36.opt-2.pyc |
3 \^ � @ s� d dddgZ dZdZdZdZydd lmZmZ W n ek rL d Zd ZY nX dd� Z d d� Z ddd �Zddd�Zddd�Z ddd�Zdd� Zdd� Zdd� Zedkr�e� d S )�encode�decode�encodestring�decodestring� =�L s 0123456789ABCDEF� � )�a2b_qp�b2a_qpNc C s: | dkr|S | dkr|S | t kp8d| ko2dkn S )Ns � _� � ~)�ESCAPE)�c� quotetabs�header� r �/usr/lib64/python3.6/quopri.py�needsquoting s r c C s( t | �} ttt| d t| d f� S )N� )�ordr �bytes�HEX)r r r r �quote$ s r Fc C s< t d k r,| j� }t |||d�}|j|� d S |dfdd�}d }x�| j� }|sNP g } d} |dd � dkrv|d d� }d} xL|D ]D}t|f�}t|||�r�t|�}|r�|dkr�| jd� q|| j|� q|W |d k r�||� tj | �}x:t |�tk�r||d td � d d � |td d � }q�W |}q@W |d k �r8||| d � d S ) N)r r � c S sj | r<| dd � dkr<|j | d d� t| dd � � | � n*| dkrX|j t| �| � n|j | | � d S )N� s � .���r r )�writer )�s�output�lineEndr r r r ; s (zencode.<locals>.writer r r r s = )r! r r )r �readr �readliner r r �append�EMPTYSTRING�join�len�MAXLINESIZE) �inputr r r �data�odatar Zprevline�lineZoutline�strippedr Zthisliner r r r , s@ c C sF t d k rt | ||d�S ddlm} || �}|� }t||||� |j� S )N)r r r )�BytesIO)r �ior. r �getvalue)r r r r. �infp�outfpr r r r j s c C s t d k r*| j� }t ||d�}|j|� d S d}�x�| j� }|s@P dt|� }}|dkr�||d |� dkr�d} |d }x.|dkr�||d |� dkr�|d }qxW nd} �x.||k �r�|||d � } | dkr�|r�|d }|d }q�| tk� r�|| }|d }q�|d |k�r| �rd} P q�|d |k �rV||d |d � tk�rV|t }|d }q�|d |k �r�t||d |d � ��r�t||d |d � ��r�|tt||d |d � �f� }|d }q�|| }|d }q�W | s2|j|d � d}q2W |�r|j|� d S )N)r r r r r s r r � � ) r r"