관리-도구
편집 파일: policy.cpython-312.opt-2.pyc
� �Q�fv) � �N � d dl Z d dlZd dlmZmZmZmZ d dlmZ d dl m Z d dlmZ d dl mZ g d�Z e j d� Ze G d � d e� � Z e� Ze`ej+ d�� Zej+ d �� Zej+ d d�� Zej+ d�� Zy)� N)�Policy�Compat32�compat32�_extend_docstrings)�_has_surrogates)�HeaderRegistry)�raw_data_manager)�EmailMessage)r r r �EmailPolicy�default�strict�SMTP�HTTPz\n|\r\n?c �j � � e Zd Z eZdZdZ e� Ze Z � fd�Zd� Zd� Z d� Zd� Zd� Zd � Zdd �Z� xZS )r F�longc �j �� d|vrt j | dt � � t �| � di |�� y )N�header_factory� )�object�__setattr__r �super�__init__)�self�kw� __class__s ��3/opt/alt/python312/lib64/python3.12/email/policy.pyr zEmailPolicy.__init__] s3 �� � �2�%����t�%5�~�7G�H� ����2�� c �6 � | j | j S �N)r � max_count)r �names r �header_max_countzEmailPolicy.header_max_countd s � � � �"�"�4�(�2�2�2r c � � |d j dd� \ }}|j d� dj |dd � z }||j d� fS )Nr �:� z � � )�split�lstrip�join�rstrip)r �sourcelinesr! �values r �header_source_parsezEmailPolicy.header_source_parsev sY � � � "�!�n�*�*�3��2���e����U�#�b�g�g�k�!�"�o�&>�>���e�l�l�6�*�+�+r c � � t |d� r/|j j � |j � k( r||fS t |t � r't |j � � dkD rt d� �|| j ||� fS )Nr! r% zDHeader values may not contain linefeed or carriage return characters) �hasattrr! �lower� isinstance�str�len� splitlines� ValueErrorr �r r! r- s r �header_store_parsezEmailPolicy.header_store_parse� s� � � � �5�&�!�e�j�j�&6�&6�&8�D�J�J�L�&H��%�=� ��e�S�!�c�%�*:�*:�*<�&=�a�&?� � =� >� >��d�)�)�$��6�7�7r c � � t |d� r|S dj t j |� � }| j ||� S )Nr! r&