관리-도구
편집 파일: base64mime.cpython-36.opt-2.pyc
3 ��2a� � @ sp d dddddgZ ddlmZ ddlmZmZ d Zd ZdZdZ d d� Z ddd�Zdefdd�Zdd� Z e Ze ZdS )�body_decode�body_encode�decode�decodestring� header_encode� header_length� )� b64encode)� b2a_base64� a2b_base64z � � � c C s* t t| �d�\}}|d }|r&|d7 }|S )N� � )�divmod�len)� bytearrayZgroups_of_3Zleftover�n� r �//opt/alt/python36/lib64/python3.6/base64mime.pyr 2 s � iso-8859-1c C s6 | sdS t | t�r| j|�} t| �jd�}d||f S )Nr �asciiz=?%s?b?%s?=)� isinstance�str�encoder r )Zheader_bytes�charsetZencodedr r r r = s �L c C s� | s| S g }|d d }x^t dt| �|�D ]J}t| ||| � �jd�}|jt�rj|tkrj|d d� | }|j|� q*W tj|�S )Nr r r r � ���) �ranger r r �endswith�NL�append�EMPTYSTRING�join)�sZ maxlinelenZeolZencvecZ max_unencoded�i�encr r r r L s c C s. | s t � S t| t�r"t| jd��S t| �S d S )Nzraw-unicode-escape)�bytesr r r r )�stringr r r r f s N)r )�__all__�base64r Zbinasciir r ZCRLFr! r# ZMISC_LENr r r r r r r r r r �<module> s"