ok
Direktori : /opt/alt/python311/lib64/python3.11/email/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/email/__pycache__/generator.cpython-311.opt-2.pyc |
� �f�N � �R � g d �Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl mZ dZdZ ej d� � Z ej d ej � � Z G d � d� � Z G d� d e� � ZdZ G d� de� � Z e eej dz � � � � Zdez Zej ZdS ))� Generator�DecodedGenerator�BytesGenerator� N)�deepcopy)�StringIO�BytesIO)�_has_surrogates�_� z \r\n|\r|\nz^From 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.writeC 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.flattenG 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.clonex 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% zGenerator._encode� s � ��r c � � |sd S t � |� � }|d d� D ]1}| � |� � | � | j � � �2|d r| � |d � � d S d S )N���)�NLCRE�splitr r$ )r �lines�lines r �_write_lineszGenerator._write_lines� s� � �� ��F����E�"�"���#�2�#�J� !� !�D��J�J�t�����J�J�t�x� � � � ���9� "��J�J�u�R�y�!�!�!�!�!� "� "r c �d � | j } d | _ | � � � x| _ }| � |� � || _ | j }| `n# || _ | j }| `w xY w|rht |� � }|� d� � �|d |d<