Hacked By AnonymousFox
a
R�f�B � @ s� d Z g d�ZddlZddlZddlZddlZddlZddlZddlZ ddl
mZ ddl
mZ
ddl
mZ ddl
mZmZmZ ddlmZ d Zd
Zd
ZdZdZe�d
�Ze�d�Zdd� Zdd� ZdAdd�Zdd� Zdd� Z dZ!dd�dd�Z"dd� Z#d d!� Z$d"d#� Z%d$d%� Z&dBd'd(�Z'dCd)d*�Z(dDd+d,�Z)d-d.� Z*dd�d/d0�Z+d1d2� Z,d3d4� Z-dEd5d6�Z.e�d7ej/�Z0d8d9� Z1dFd<d=�Z2dGd?d@�Z3dS )HzMiscellaneous utilities.)�collapse_rfc2231_value�
decode_params�decode_rfc2231�encode_rfc2231�
formataddr�
formatdate�format_datetime�getaddresses�
make_msgid� mktime_tz� parseaddr� parsedate�parsedate_tz�parsedate_to_datetime�unquote� N)�quote)�AddressList)r
)r r
�
_parsedate_tz)�Charsetz, � z
�'z[][\\()<>@,:;".]z[\\"]c C s( z| � � W dS ty" Y dS 0 dS )z8Return True if s contains surrogate-escaped binary data.FTN)�encode�UnicodeEncodeError)�s� r �0/opt/alt/python39/lib64/python3.9/email/utils.py�_has_surrogates4 s
r c C s | � dd�}|�dd�S )N�utf-8�surrogateescape�replace)r �decode)�stringZoriginal_bytesr r r � _sanitizeA s r"