ok
Direktori : /opt/alt/python311/lib64/python3.11/email/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/email/__pycache__/message.cpython-311.opt-1.pyc |
� �f�� � � � d Z ddgZddlZddlZddlZddlmZmZ ddlm Z ddlm Z ddlmZm Z dd lmZ dd lmZ ej ZdZ ej d� � Zd � Zdd�Zd� Zd� Zd� Z G d� d� � Z G d� de� � Z G d� de� � ZdS )z8Basic message object for the email package object model.�Message�EmailMessage� N)�BytesIO�StringIO)�utils)�errors)�Policy�compat32��charset)�decode_bz; z[ \(\)<>@,;:\\"/\[\]\?=]c �� � t | � � � d� � \ }}}|s|� � � d fS |� � � |� � � fS )N�;)�str� partition�strip)�param�a�sep�bs �4/opt/alt/python311/lib64/python3.11/email/message.py�_splitparamr sX � � �E� � �$�$�S�)�)�I�A�s�A�� ��w�w�y�y�$����7�7�9�9�a�g�g�i�i��� Tc �� � |��t |� � dk r�t |t � � r4| dz } t j |d |d |d � � }| �d|��S |� d� � n2# t $ r% | dz } t j |dd � � }| �d|��cY S w xY w|st � |� � r| �d t j |� � �d�S | �d|��S | S )a~ Convenience function to format and return a key=value pair. This will quote the value if needed or if quote is true. If value is a three tuple (charset, language, value), it will be encoded according to RFC2231 rules. If it contains non-ascii characters it will likewise be encoded according to RFC2231 rules, using the utf-8 charset and a null language. Nr �*� � �=�asciizutf-8� z="�") �len� isinstance�tupler �encode_rfc2231�encode�UnicodeEncodeError� tspecials�search�quote)r �valuer* s r �_formatparamr, '