AlkantarClanX12
Current Path : /opt/alt/python38/lib64/python3.8/email/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/email/__pycache__/utils.cpython-38.opt-1.pyc |
U i�f~C � @ s� d Z ddddddddd d ddd ddgZddlZddlZddlZddlZddlZddlZddlZ ddl mZ ddl mZ ddl mZ ddl mZmZmZ ddlmZ dZdZdZdZdZe�d�Ze�d�Zdd� Zdd � ZdCd"d�Zd#d$� Zd%d&� Z d'Z!d'd(�d)d�Z"d*d+� Z#d,d-� Z$d.d/� Z%d0d1� Z&dDd3d�Z'dEd4d�Z(dFd5d �Z)d6d� Z*d'd(�d7d�Z+d8d� Z,d9d� Z-dGd:d�Z.e�d;ej/�Z0d<d� Z1dHd?d�Z2dIdAdB�Z3dS )JzMiscellaneous 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 tk r$ Y dS X dS )z8Return True if s contains surrogate-escaped binary data.FTN)�encode�UnicodeEncodeError)�s� r �0/opt/alt/python38/lib64/python3.8/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"