|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt/python39/lib64/python3.9/email/__pycache__/ |
Upload File : |
a
(�;b�3 � @ sP d Z g d�ZddlZddlZddlZddlZddlZddlZddlZ ddl
mZ ddl
mZ
ddl
mZ ddl
mZmZmZ ddlmZ d Zd
Zd
ZdZdZe�d
�Ze�d�Zdd� Zdd� Zd5dd�Zdd� Zdd� Z d6dd�Z!d7dd�Z"d8dd �Z#d!d"� Z$d#d$� Z%d%d&� Z&d'd(� Z'd9d)d*�Z(e�d+ej)�Z*d,d-� Z+d:d0d1�Z,d;d3d4�Z-dS )<zMiscellaneous 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_surrogates3 s
r c C s | � dd�}|�dd�S )N�utf-8�surrogateescape�replace)r �decode)�stringZoriginal_bytesr r r � _sanitize@ s r"