관리-도구
편집 파일: generator.cpython-311.opt-2.pyc
� c��fNQ � �~ � g d �Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl mZ ddlm Z dZdZ ej d � � Z ej d ej � � Z ej d� � Z G d� d � � Z G d� de� � ZdZ G d� de� � Z e eej dz � � � � Zdez Zej ZdS ))� Generator�DecodedGenerator�BytesGenerator� N)�deepcopy)�StringIO�BytesIO)�_has_surrogates)�HeaderWriteError�_� z \r\n|\r|\nz^From z\r\n[^ \t]|\r[^ \n\t]|\n[^ \t]c � � e Zd Z ddd�d�Zd� Zdd�Zd� Zd� Zd � Zd � Z d� Z d� Zd � Zd� Z e Zd� Zd� Zd� Zd� Zedd�� � Zed� � � ZdS )r N��policyc �Z � |�|�dn|j }|| _ || _ || _ || _ d S )NT)�mangle_from_�_fp� _mangle_from_�maxheaderlenr )�self�outfpr r r s �6/opt/alt/python311/lib64/python3.11/email/generator.py�__init__zGenerator.__init__% sA � � �. ��#)�>�4�4�v�7J�L����)���(�������� c �: � | j � |� � d S �N)r �write�r �ss r r zGenerator.writeE s � �����q�����r Fc � � | j �|j n| j }|�|� |�� � }| j �|� | j �� � }|j | _ | � | j � � | _ d| _ | � | j � � | _ | j }|j } || _ ||_ |r[|� � � }|s(dt j t j � � � � z }| � || j z � � | � |� � || _ ||_ d S # || _ ||_ w xY w)N)�linesep��max_line_length� zFrom nobody )r �cloner r �_NL�_encode�_encoded_NL�_EMPTY�_encoded_EMPTY�get_unixfrom�time�ctimer �_write)r �msg�unixfromr r �old_gen_policy�old_msg_policy�ufroms r �flattenzGenerator.flattenI sJ � � �( $�{�2����������\�\�'�\�2�2�F���(��\�\�$�2C�\�D�D�F��>����<�<���1�1������"�l�l�4�;�7�7��� ������ (� �D�K��C�J�� -��(�(�*�*��� E�*�T�Z�� ���-D�-D�D�E�� � �5�4�8�+�,�,�,��K�K�����(�D�K�'�C�J�J�J�� )�D�K�'�C�J�'�'�'�'s �1B E �Ec �J � | � || j d | j �� � S �Nr )� __class__r r )r �fps r r$ zGenerator.clonez s0 � �?��~�~�b�"�0�"�%)�[� � 2� 2� 2r c � � t � � S r )r �r s r �_new_bufferzGenerator._new_buffer� s � ��z�z�r c � � |S r � r s r r&