add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
�

�Wc�cs��dZgd�ZddlmZmZddlmZmZddlm	Z	Gd�d�Z
Gd�d	e
�ZGd
�d�ZGd�d
e�Z
dS)z-A parser of RFC 2822 and MIME email messages.)�Parser�HeaderParser�BytesParser�BytesHeaderParser�
FeedParser�BytesFeedParseri)�StringIO�
TextIOWrapper)rr)�compat32cs,�eZdZded�d�Zdd�Zdd�ZdS)	rN��policycs"�||_||_dS)a�Parser of RFC 2822 and MIME email messages.

        Creates an in-memory object tree representing the email message, which
        can then be manipulated and turned over to a Generator to return the
        textual representation of the message.

        The string must be formatted as a block of RFC 2822 headers and header
        continuation lines, optionally preceded by a `Unix-from' header.  The
        header block is terminated either by the end of the string or by a
        blank line.

        _class is the class to instantiate for new message objects when they
        must be created.  This class must have a constructor that can take
        zero arguments.  Default is Message.Message.

        The policy keyword specifies a policy object that controls a number of
        aspects of the parser's operation.  The default policy maintains
        backward compatibility.

        N)�_classr
)�selfrr
�   �%/usr/lib64/python3.12/email/parser.py�__init__zParser.__init__s��*��������Fcs��t|j|j��}|r|j�	|j	d�}|s	|j
�S|j|��9)a\Create a message structure from the data in a file.

        Reads all the data from the file and returns the root of the message
        structure.  Optional headersonly is a flag specifying whether to stop
        parsing after reading the headers or not.  The default is False,
        meaning it parses the entire contents of the file.
        r	Ti )rrr
Z_set_headersonlyZreadZfeedZclose)r�fp�headersonlyZ
feedparserZdatas     r�parsezParser.parse)sl�� ����D�K�K�@�@�
��;��'�'�)�)���7�7�4�=�D��4�����!�!�
�O�O�D�!�!�	rcs@�|jt|�|��S)a-Create a message structure from a string.

        Returns the root of the message structure.  Optional headersonly is a
        flag specifying whether to stop parsing after reading the headers or
        not.  The default is False, meaning it parses the entire contents of
        the file.
        �r)rr�rZtextrr
r�parsestrzParser.parsestr;s���z�z�(�4�.�k�z�B�Br)N�F)�__name__�
__module__�__qualname__rrrr�rrrrsb�������h������0"�"�"�"�$C�C�C�C�C�Crrc��eZdZdd�Zdd�ZdS)rTc�4�tj||d�S�NT)rr�rrrr
rrzHeaderParser.parseHs���|�|�D�"�d�+�+rcrr)rrrr
rrzHeaderParser.parsestrKs�����t�T�4�0�0rN�T)rrrrrrrrrrGs<������,�,�,�,�1�1�1�1�1�1rrcs$�eZdZd�Zdd�Zdd�ZdS)rcs(�t|i|��|_dS)a�Parser of binary RFC 2822 and MIME email messages.

        Creates an in-memory object tree representing the email message, which
        can then be manipulated and turned over to a Generator to return the
        textual representation of the message.

        The input must be formatted as a block of RFC 2822 headers and header
        continuation lines, optionally preceded by a `Unix-from' header.  The
        header block is terminated either by the end of the input or by a
        blank line.

        _class is the class to instantiate for new message objects when they
        must be created.  This class must have a constructor that can take
        zero arguments.  Default is Message.Message.
        N)r�parser)rZargsZkwr
rrzBytesParser.__init__Qs�� �d�)�b�)�)����rFcs��t|dd��}	|jj||�|j�S#|j�wxYw)acCreate a message structure from the data in a binary file.

        Reads all the data from the file and returns the root of the message
        structure.  Optional headersonly is a flag specifying whether to stop
        parsing after reading the headers or not.  The default is False,
        meaning it parses the entire contents of the file.
        Zascii�surrogateescape)Zencoding�errors)rr!rZdetachrr
rrzBytesParser.parsecsO���2��8I�
J�
J��	��;�;�$�$�R��5��I�I�K�K�K��B�I�I�K�K�K�K�K�Ks�A�Acsd�|jdd��}|jj||�S)a2Create a message structure from a byte string.

        Returns the root of the message structure.  Optional headersonly is a
        flag specifying whether to stop parsing after reading the headers or
        not.  The default is False, meaning it parses the entire contents of
        the file.
        ZASCIIr")r#)Zdecoder!rrr
r�
parsebyteszBytesParser.parsebytesrs.���{�{�7�+<�{�=���{�{�#�#�D�+�6�6rNr)rrrrrr$rrrrrOsK������*�*�*�$����	7�	7�	7�	7�	7�	7rrcr)rTc�6�tj||d��S�NTr)rrrr
rrzBytesHeaderParser.parses��� � ��r�t� �<�<rcr%r&)rr$rr
rr$zBytesHeaderParser.parsebytes�s���%�%�d�D�d�%�C�CrNr )rrrrr$rrrrr~sB������=�=�=�=�D�D�D�D�D�DrrN)Z__doc__Z__all__ZiorrZemail.feedparserrrZemail._policybaserrrrrrrr�<module>r's��
4�3�,�,�,��'�&�&�&�&�&�&�&�8�8�8�8�8�8�8�8�&�&�&�&�&�&�3C�3C�3C�3C�3C�3C�3C�n1�1�1�1�1�6�1�1�,7�,7�,7�,7�,7�,7�,7�^D�D�D�D�D��D�D�D�Dr