Hacked By AnonymousFox
a
R�f�
� @ sh g d �Z ddlmZ ddlmZmZ dZdZdZdZ dd � Z
ddd�Zd
efdd�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 �5/opt/alt/python39/lib64/python3.9/email/base64mime.pyr 2 s
r �
iso-8859-1c C s6 | sdS t | t�r| �|�} t| ��d�}d||f S )Nr �asciiz=?%s?b?%s?=)�
isinstance�str�encoder r )Zheader_bytes�charsetZencodedr r r r = s
r �L c C s~ | s| S g }|d d }t dt| �|�D ]J}t| ||| � ��d�}|�t�rh|tkrh|d d� | }|�|� q(t�|�S )Nr r r r ���) �ranger r r �endswith�NL�append�EMPTYSTRING�join)�sZ
maxlinelenZeolZencvecZ
max_unencoded�i�encr r r r L s
r c C s. | s
t � S t| t�r"t| �d��S t| �S d S )Nzraw-unicode-escape)�bytesr r r
r )�stringr r r r f s
r N)r )�__all__�base64r Zbinasciir r
ZCRLFr r"