관리-도구
편집 파일: policy.cpython-310.opt-2.pyc
o 6��f�( � @ s� d dl Z d dlZd dlmZmZmZmZ d dlmZ d dl m Z d dlmZ d dl mZ g d�Ze �d�ZeG d d � d e��Ze� Ze`ejdd�Zejd d�Zejd dd�Zejdd�ZdS )� N)�Policy�Compat32�compat32�_extend_docstrings)�_has_surrogates)�HeaderRegistry)�raw_data_manager)�EmailMessage)r r r �EmailPolicy�default�strict�SMTP�HTTPz\n|\rc sn e Zd Z eZdZdZe� Ze Z � fdd�Zdd� Zdd� Z d d � Zdd� Zd d� Zdd� Zddd�Z� ZS )r F�longc s. d|vrt �| dt� � t� jdi |�� d S )N�header_factory� )�object�__setattr__r �super�__init__)�self�kw�� __class__r �3/opt/alt/python310/lib64/python3.10/email/policy.pyr ] s zEmailPolicy.__init__c C s | j | jS �N)r Z max_count)r �namer r r �header_max_countd s zEmailPolicy.header_max_countc C s@ |d � dd�\}}|�d�d�|dd � � }||�d�fS )Nr �:� z � � )�split�lstrip�join�rstrip)r Zsourcelinesr �valuer r r �header_source_parsev s zEmailPolicy.header_source_parsec C sX t |d�r|j�� |�� kr||fS t|t�r$t|�� �dkr$td��|| �||�fS )Nr r zDHeader values may not contain linefeed or carriage return characters) �hasattrr �lower� isinstance�str�len� splitlines� ValueErrorr �r r r&