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੐)|#o0aڱ$I>}k&1`U#V?YsV x>{t1[I~D&(I$I/{H0fw"q"y%4 IXyE~M3 8XψL}qE$I[> nD?~sf ]o΁ cT6"?'_Ἣ $I>~.f|'!N?⟩0G KkXZE]ޡ;/&?k OۘH$IRۀwXӨ<7@PnS04aӶp.:@\IWQJ6sS%I$e5ڑv`3:x';wq_vpgHyXZ 3gЂ7{{EuԹn±}$I$8t;b|591nءQ"P6O5i }iR̈́%Q̄p!I䮢]O{H$IRϻ9s֧ a=`- aB\X0"+5"C1Hb?߮3x3&gşggl_hZ^,`5?ߎvĸ%̀M!OZC2#0x LJ0 Gw$I$I}<{Eb+y;iI,`ܚF:5ܛA8-O-|8K7s|#Z8a&><a&/VtbtLʌI$I$I$I$I$I$IRjDD%tEXtdate:create2022-05-31T04:40:26+00:00!Î%tEXtdate:modify2022-05-31T04:40:26+00:00|{2IENDB`Mini Shell

HOME


Mini Shell 1.0
DIR:/usr/lib/python3/dist-packages/debian/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/debian/__pycache__/copyright.cpython-311.pyc
�

)uyc�z����dZddlZddlZddlZddlZddlZ	ddlmZmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZedZedZn
#e$rdZYnwxYwddlmZmZmZmZmZddlmZm Z 	dd	lm!Z!n#e$rYnwxYwd
Z"e#e"g��Z$ej%e&��Z'Gd�de(��Z)Gd
�de)��Z*Gd�de)e+��Z,d�Z-Gd�de.��Z/d�Z0Gd�de.��Z1Gd�de.��Z2d�Z3d�Z4d�Z5d�Z6Gd�dej7dd����Z8d �Z9Gd!�d"e:��Z;Gd#�d$e;�%��Z<Gd&�d'e<��Z=Gd(�d)e<��Z>Gd*�d+e<��Z?dS),a9Utilities for parsing and creating machine-readable debian/copyright files.

The specification for the format (also known as DEP5) is available here:
https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Start from the Copyright docstring for usage information.

Copyright Classes
-----------------
�N)�Any�Callable�	FrozenSet�IO�Iterable�Iterator�List�Optional�Pattern�Text�Tuple�Union�
TYPE_CHECKING�cast)�FilesParagraph�LicenseParagraph)�HeaderrrF)�parse_deb822_file�Deb822ParagraphElement�Deb822FileElement�'Deb822NoDuplicateFieldsParagraphElement�SyntaxOrParseError)�RestrictedField�RestrictedFieldError)�Deb822ValueTypezBhttps://www.debian.org/doc/packaging-manuals/copyright-format/1.0/c��eZdZdZdS)�Errorz)Base class for exceptions in this module.N��__name__�
__module__�__qualname__�__doc__���2/usr/lib/python3/dist-packages/debian/copyright.pyrrSs������3�3�3�3r$rc��eZdZdZdS)�NotMachineReadableErrorzFRaised when the input is not a machine-readable debian/copyright file.Nrr#r$r%r'r'Ws������P�P�P�Pr$r'c��eZdZdZdS)�MachineReadableFormatErrorz�Raised when the input is not valid.

    This is both a `copyright.Error` and a `ValueError` to ease handling of
    errors coming from this module.
    Nrr#r$r%r)r)[s���������r$r)c�\�|rt|���t�|��dS�N)r)�logger�warning)�msg�stricts  r%�	_complainr0cs0��
�.�(��-�-�-�
�N�N�3�����r$c���eZdZdZd�fd�	Zed���Zejd���Zd�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�Zdd�Z�xZS)�	Copyrighta�Represents a debian/copyright file.

    A Copyright object contains a Header paragraph and a list of additional
    Files or License paragraphs.  It provides methods to iterate over those
    paragraphs, in addition to adding new ones.  It also provides a mechanism
    for finding the Files paragraph (if any) that matches a particular
    filename.

    Typical usage::

        with io.open('debian/copyright', 'rt', encoding='utf-8') as f:
            c = copyright.Copyright(f)

            header = c.header
            # Header exposes standard fields, e.g.
            print('Upstream name: ', header.upstream_name)
            lic = header.license
            if lic:
                print('Overall license: ', lic.synopsis)
            # You can also retrieve and set custom fields.
            header['My-Special-Field'] = 'Very special'

            # Find the license for a given file.
            paragraph = c.find_files_paragraph('debian/rules')
            if paragraph:
                print('License for debian/rules: ', paragraph.license)

            # Dump the result, including changes, to another file.
            with io.open('debian/copyright.new', 'wt', encoding='utf-8') as f:
                c.dump(f=f)

    It is possible to build up a Copyright from scratch, by modifying the
    header and using add_files_paragraph and add_license_paragraph.  See the
    associated method docstrings.
    N�utf-8Tc�$��tt|�����g|_|��d}	t	|||���|_n.#t$r!}tt|�����d}~wwxYw|jD]�}|�t|��}�d|vr-t|||���}|j�|���Ed|vr+t||��}|j�|���ttd|����|std���||_dStj��|_t��|_|j�|jj��|j�|j��dS)a� Create a new copyright file in the current format.

        :param sequence: Sequence of lines, e.g. a list of strings or a
            file-like object.  If not specified, a blank Copyright object is
            initialized.
        :param encoding: Encoding to use, in case input is raw byte strings.
            It is recommended to use unicode objects everywhere instead, e.g.
            by opening files in text mode.
        :param strict: Raise if format errors are detected in the data.

        Raises:
            :class:`NotMachineReadableError` if 'sequence' does not contain a
                machine-readable debian/copyright file.
            MachineReadableFormatError if 'sequence' is not a valid file.
        N)�sequence�encoding�#accept_files_with_duplicated_fields�Files)r/�Licensez=Non-header paragraph has neither "Files" nor "License" fieldszno paragraphs in input)�superr2�__init__�_Copyright__paragraphsr�_Copyright__filerr'�strrr�appendrr0�_Copyright__headerr�new_empty_file�_underlying_paragraph)
�selfr5r6r/�header�e�p�pf�pl�	__class__s
         �r%r;zCopyright.__init__�s����"	�i����'�'�)�)�)�������F�
6�/�!)�H�@F�J�H�H�H�����&�
6�
6�
6�-�c�!�f�f�5�5�5�����
6�����[�
:�
:���>�#�A�Y�Y�F�F���\�\�'��6�&�A�A�A�B��%�,�,�R�0�0�0�0��!�^�^�)�!�V�4�4�B��%�,�,�R�0�0�0�0��1�28�:�:�:�:��
H�-�.F�G�G�G�"�D�M�M�M�,�:�<�<�D�K�"�H�H�D�M��K���t�}�B�C�C�C���$�$�T�]�3�3�3�3�3s�A�
A9�A4�4A9c��|jS)zThe file header paragraph.)r@�rCs r%rDzCopyright.header�s���}�r$c�\�t|t��std���||_dS)Nzvalue must be a Header object)�
isinstancer�	TypeErrorr@)rC�hdrs  r%rDzCopyright.header�s0���#�v�&�&�	=��;�<�<�<���
�
�
r$c�V�tj|jgd�|jD����S)aReturns an iterator over all paragraphs (header, Files, License).

        The header (returned first) will be returned as a Header object; file
        paragraphs as FilesParagraph objects; license paragraphs as
        LicenseParagraph objects.

        c3�K�|]}|V��dSr+r#��.0rFs  r%�	<genexpr>z+Copyright.all_paragraphs.<locals>.<genexpr>�s"����.L�.L�Q�q�.L�.L�.L�.L�.L�.Lr$)�	itertools�chainrDr<rKs r%�all_paragraphszCopyright.all_paragraphs�s,������}�.L�.L�$�:K�.L�.L�.L�M�M�Mr$c�*�|���S)zXIterate over all paragraphs

        see all_paragraphs() for more information

        )rWrKs r%�__iter__zCopyright.__iter__�s���"�"�$�$�$r$c�$�d�|jD��S)z>Returns an iterator over the contained FilesParagraph objects.c3�DK�|]}t|t���|V��dSr+)rMrrRs  r%rTz1Copyright.all_files_paragraphs.<locals>.<genexpr>�s1����N�N�a�
�1�n�0M�0M�N��N�N�N�N�N�Nr$�r<rKs r%�all_files_paragraphszCopyright.all_files_paragraphs�s��O�N�4�,�N�N�N�Nr$c�f�d}|���D]}|�|��r|}�|S)z�Returns the FilesParagraph for the given filename.

        In accordance with the spec, this method returns the last FilesParagraph
        that matches the filename.  If no paragraphs matched, returns None.
        N)r]�matches)rC�filename�resultrFs    r%�find_files_paragraphzCopyright.find_files_paragraph�sC�����*�*�,�,�	�	�A��y�y��"�"�
�����
r$c�6�t|t��std���d}t|j��D]\}}t|t��r|}�|j�|dz|��|j�|dz|j��dS)z�Adds a FilesParagraph to this object.

        The paragraph is inserted directly after the last FilesParagraph (which
        might be before a standalone LicenseParagraph).
        z+paragraph must be a FilesParagraph instance�����N)rMrrN�	enumerater<�insertr=rB)rC�	paragraph�last_i�irFs     r%�add_files_paragraphzCopyright.add_files_paragraph�s����)�^�4�4�	K��I�J�J�J����d�/�0�0�	�	�D�A�q��!�^�,�,�
������ � ��!��Y�7�7�7�����6�A�:�y�'F�G�G�G�G�Gr$c�$�d�|jD��S)z=Returns an iterator over standalone LicenseParagraph objects.c3�DK�|]}t|t���|V��dSr+)rMrrRs  r%rTz3Copyright.all_license_paragraphs.<locals>.<genexpr>	s2����P�P�a�
�1�>N�0O�0O�P��P�P�P�P�P�Pr$r\rKs r%�all_license_paragraphsz Copyright.all_license_paragraphss��Q�P�4�,�P�P�P�Pr$c��t|t��std���|j�|��|j�|j��dS)zoAdds a LicenceParagraph to this object.

        The paragraph is inserted after any other paragraphs.
        z-paragraph must be a LicenseParagraph instanceN)rMrrNr<r?r=rB)rCris  r%�add_license_paragraphzCopyright.add_license_paragraphs]���)�%5�6�6�	M��K�L�L�L��� � ��+�+�+�����9�:�;�;�;�;�;r$c�j�|j���}|�|�|��dS|S)aaDumps the contents of the copyright file.

        If f is None, returns a unicode object.  Otherwise, writes the contents
        to f, which must be a file-like object that is opened in text mode
        (i.e. that accepts unicode objects directly).  It is thus up to the
        caller to arrange for the file to do any appropriate encoding.
        N)r=�dump�write)rC�f�ss   r%rszCopyright.dumps5��
�K�������=�
�G�G�A�J�J�J��4��r$)Nr3Tr+)rr r!r"r;�propertyrD�setterrWrYr]rbrlrorqrs�
__classcell__�rIs@r%r2r2js
�������"�"�H14�14�14�14�14�14�f����X��
�]����]��	N�	N�	N�%�%�%�O�O�O�
���H�H�H�"Q�Q�Q�
	<�	<�	<��������r$r2c�,�d|vrtd���|S)zNReturns s if it is a single line; otherwise raises MachineReadableFormatError.�
zmust be single line)r)�rvs r%�_single_liner~'s!���q�y�y�(�)>�?�?�?��Hr$c�>�eZdZdZed���Zed���ZdS)�
_LineBasedz@Namespace for conversion methods for line-based lists as tuples.c��td�d�|pd������D��D����S)z?Returns the lines in 's', with whitespace stripped, as a tuple.c3�K�|]}|�|V��	dSr+r#�rS�vs  r%rTz&_LineBased.from_str.<locals>.<genexpr>7s:������1���Q������r$c3�>K�|]}|���V��dSr+)�strip)rS�lines  r%rTz&_LineBased.from_str.<locals>.<genexpr>8s*����N�N�t�d�j�j�l�l�N�N�N�N�N�Nr$�)�tupler��
splitlinesr}s r%�from_strz_LineBased.from_str3sZ�����N�N���R���/@�/@�/K�/K�/M�/M�N�N�N������	r$c���t|��}|sdSd�}t|��dkr||d��Sdg}|D]#}|�d||��z���$d�|��S)z�Returns the sequence as a string with each element on its own line.

        If 'seq' has one element, the result will be on a single line.
        Otherwise, the first line will be blank.
        Nc�v�|���}|std���d|vrtd���|S)N�values must not be emptyr|z values must not contain newlines)r�r)r}s r%�process_and_validatez/_LineBased.to_str.<locals>.process_and_validateGsJ�����	�	�A��
M�0�1K�L�L�L��q�y�y�0�6�8�8�8��Hr$rerr�� r|)�list�lenr?�join)�seq�lr��tmprvs     r%�to_strz_LineBased.to_str;s���
��I�I���	��4�	�	�	��q�6�6�Q�;�;�'�'��!��-�-�-��d���	6�	6�A��J�J�s�1�1�!�4�4�4�5�5�5�5��y�y��~�~�r$N)rr r!r"�staticmethodr�r�r#r$r%r�r�/sP������J�J�����\������\���r$r�c�^�eZdZdZejd��Zed���Ze	d���Z
dS)�_SpaceSeparatedzENamespace for conversion methods for space-separated lists as tuples.z\sc�\�td�|pd���D����S)z>Returns the values in s as a tuple (empty if only whitespace).c3�K�|]}|�|V��	dSr+r#r�s  r%rTz+_SpaceSeparated.from_str.<locals>.<genexpr>ds'����7�7�1�Q�7�Q�7�7�7�7�7�7r$r�)r��splitr}s r%r�z_SpaceSeparated.from_str`s/���7�7���b��� 1� 1�7�7�7�7�7�7r$c�&�t|��}|sdSg}|D]e}|j�|��rtd���|���}|std���|�|���fd�|��S)zAReturns the sequence as a space-separated string (None if empty).Nz"values must not contain whitespacer�r�)r��
_has_space�searchr)r�r?r�)�clsr�r�r�rvs     r%r�z_SpaceSeparated.to_strfs���
��I�I���	��4����	�	�A��~�$�$�Q�'�'�
:�0�8�:�:�:����	�	�A��
M�0�1K�L�L�L��J�J�q�M�M�M�M��x�x��}�}�r$N)rr r!r"�re�compiler�r�r��classmethodr�r#r$r%r�r�Zsa������O�O����E�"�"�J��8�8��\�8�
����[���r$r�c�L�|�dSt|�����S)z�Formats multiline text for insertion in a Deb822ParagraphElement field.

    Each line except for the first one is prefixed with a single space.  Lines
    that are blank or only whitespace are replaced with ' .'
    N)�format_multiline_linesr�r}s r%�format_multiliner�{s$��	�y��t�!�!�,�,�.�.�1�1�1r$c���g}t|��D];\}}|dkr|���sd}d|z}|�|���<d�|��S)z?Same as format_multline, but taking input pre-split into lines.r�.r�r|)rgr�r?r�)�lines�	out_linesrkr�s    r%r�r��st���I��U�#�#�����4���6�6��:�:�<�<�
�����:�D����������9�9�Y���r$c�N�|�dSd�t|����S)agInverse of format_multiline.

    Technically it can't be a perfect inverse, since format_multline must
    replace all-whitespace lines with ' .'.  Specifically, this function:

      - Does nothing to the first line
      - Removes first character (which must be ' ') from each proceeding line.
      - Replaces any line that is '.' with an empty line.
    Nr|)r��parse_multiline_as_linesr}s r%�parse_multiliner��s)��	�y��t��9�9�-�a�0�0�1�1�1r$c���|���}t|��D]H\}}|dkr�|�d��r|dd�}ntd���|dkrd}|||<�I|S)zpSame as parse_multiline, but returns a list of lines.

    (This is the inverse of format_multiline_lines.)
    rr�reNz"continued line must begin with " "r�r�)r�rg�
startswithr))rvr�rkr�s    r%r�r��s���
�L�L�N�N�E��U�#�#�
�
���4���6�6���?�?�3���	6�����8�D�D�,�4�6�6�
6��3�;�;��D���a����Lr$c�@��eZdZdZd�fd�	Zed���Zd�Z�xZS)r9z7Represents the contents of a License field.  Immutable.r�c�x��tt|���|t|��|pd���S)a�Creates a new License object.

        :param synopsis: The short name of the license, or an expression giving
            alternatives.  (The first line of a License field.)
        :param text: The full text of the license, if any (may be None).  The
            lines should not be mangled for "deb822"-style wrapping - i.e. they
            should not have whitespace prefixes or single '.' for empty lines.
        r�)�synopsis�text)r:r9�__new__r~)r�r�r�rIs   �r%r�zLicense.__new__�sB����W�c�"�"�*�*��,�x�0�0��
��+�E�E�	Er$c
��|�dSt|��}|s|d��S||dd�tj|dd�������S)Nr�rr|re)r�)r�r�rU�islice)r�rvr�s   r%r�zLicense.from_str�sd��
�9��4�(��+�+���	��3�r�7�7�N��s�5��8�$�)�)�I�,<�U�A�t�,L�,L�"M�"M�N�N�N�Nr$c�`�t|jg|j���z��Sr+)r�r�r�r�rKs r%r�zLicense.to_str�s'��%�t�}�o��	�8L�8L�8N�8N�&N�O�O�Or$)r�)	rr r!r"r�r�r�r�ryrzs@r%r9r9�s}�������A�A�E�E�E�E�E�E��O�O��[�O�P�P�P�P�P�P�Pr$r9z
synopsis textc��tj��}t|��D�]\}}|dkr|�d��d}t	|��}||kr�||}|dz
}|dkr|�d��n�|dkr|�d��n�|dkra||kr||}|dz
}ntd	���|d
vr(|�t
j|����n9td|z���|�t
j|����||k�ِ�|�d��t
j|�	��tj
tjz��S)
a^Returns an re object for the given globs.

    Only * and ? wildcards are supported.  Literal * and ? may be matched via
    \* and \?, respectively.  A literal backslash is matched \\.  Any other
    character after a backslash is forbidden.

    Empty globs match nothing.

    Raises MachineReadableFormatError if any of the globs is illegal.
    r�|re�*z.*�?r��\z#single backslash not allowed at endz\?*zinvalid escape sequence: \%sz\Z)�io�StringIOrgrtr�r)r��escaper��getvalue�	MULTILINE�DOTALL)�globs�bufrk�glob�n�cs      r%�globs_to_rer��s{��
�+�-�-�C��U�#�#�(�(���4���6�6��I�I�c�N�N�N�
����I�I���!�e�e��Q��A�
��F�A��C�x�x��	�	�$������c����	�	�#������d����q�5�5��Q��A���F�A�A�4�=�?�?�?���;�;��I�I�b�i��l�l�+�+�+�+�4�7�!�;�=�=�=��	�	�"�)�A�,�,�'�'�'�)�!�e�e��0�I�I�e����
�:�c�l�l�n�n�b�l�R�Y�&>�?�?�?r$c�"��eZdZdZ�fd�Z�xZS)�_ClassInitMetaa�Metaclass for classes that can be initialized at creation time.

    Implement the method::

      @classmethod
      def _class_init(cls, new_attrs):
          pass

    on a class, and apply this metaclass to it.  The _class_init method will be
    called right after the class is created.  The 'new_attrs' param is a dict
    containing the attributes added in the definition of the class.
    c���tt|���|||��|�|��dSr+)r:r�r;�_class_init)r��name�bases�attrsrIs    �r%r;z_ClassInitMeta.__init__s?���	�n�c�"�"�+�+�D�%��?�?�?���������r$)rr r!r"r;ryrzs@r%r�r�
sB�����������������r$r�c���eZdZdZe��Zed���Zed���Zd�fd�	Z	e
d���Zd�Zd�Z
d	�Zd
�Zd�Z			dd�Z�xZS)�_RestrictedWrappera^Base class to wrap a Deb822 object, restricting write access to some keys.

    The underlying data is hidden internally.  Subclasses may keep a reference
    to the data before giving it to this class's constructor, if necessary, but
    RestrictedField should cover most use-cases.  The dump method from
    Deb822 is directly proxied.

    Typical usage::

        class Foo(object):
            def __init__(self, ...):
                # ...

            @staticmethod
            def from_str(self, s):
                # Parse s...
                return Foo(...)

            def to_str(self):
                # Return in string format.
                return ...

        class MyClass(deb822._RestrictedWrapper):
            def __init__(self):
                data = Deb822ParagraphElement.new_empty_paragraph()
                data['Bar'] = 'baz'
                super(MyClass, self).__init__(data)

            foo = deb822.RestrictedField(
                    'Foo', from_str=Foo.from_str, to_str=Foo.to_str)

            bar = deb822.RestrictedField('Bar', allow_none=False)

        d = MyClass()
        d['Bar'] # returns 'baz'
        d['Bar'] = 'quux' # raises RestrictedFieldError
        d.bar = 'quux'
        d.bar # returns 'quux'
        d['Bar'] # returns 'quux'

        d.foo = Foo(...)
        d['Foo'] # returns string representation of foo
    c��g}|���D]\\}}t|t��rB|�|j�����|�||���]t|��|_dSr+)	�itemsrMrr?r��lower�)_RestrictedWrapper__init_restricted_field�	frozenset�%_RestrictedWrapper__restricted_fields)r��	new_attrs�restricted_fields�	attr_name�vals     r%r�z_RestrictedWrapper._class_initQs�����'�o�o�/�/�	<�	<�N�I�s��#��/�/�
<�!�(�(�����)9�)9�:�:�:��+�+�I�s�;�;�;��"+�,=�">�">����r$c
�h���fd�}�fd�}t||t||d�j����dS)Nc�~��|j��j��}�j���|��S|Sr+)�_RestrictedWrapper__data�getr�r��rCr��fields  �r%�getterz:_RestrictedWrapper.__init_restricted_field.<locals>.getter\s7����+�/�/�%�*�-�-�C��~�)��~�~�c�*�*�*��Jr$c����|��j���|��}|�5�jr�j|jvr|j�j=dSdSt	d���||j�j<dS)Nzvalue must not be None)r��
allow_noner�r�rNr�s  �r%rxz:_RestrictedWrapper.__init_restricted_field.<locals>.settercs~�����5�<�#;��l�l�3�'�'���{��#�>��z�T�[�0�0� �K��
�3�3�3�1�0�$�$<�=�=�=�*-���E�J�'�'�'r$)�setattrrwr�)r�r�r�r�rxs  `  r%�__init_restricted_fieldz*_RestrictedWrapper.__init_restricted_fieldZs_���	�	�	�	�	�	.�	.�	.�	.�	.�	��Y�����u�z� J� J�K�K�K�K�Kr$Tc����tt|�����|r>t|t��s)tdt
|jj��z���||_	dS)zEInitializes the wrapper over 'data', a Deb822ParagraphElement object.z!Paragraph has duplicated fields: N)
r:r�r;rMr�
ValueErrorr>rIr!r��rC�data�_internal_validaterIs   �r%r;z_RestrictedWrapper.__init__rsj���	� �$�'�'�0�0�2�2�2��	e�j��7^�&_�&_�	e��@�3�t�~�Gb�Cc�Cc�c�d�d�d�����r$c��|jSr+�r�rKs r%rBz(_RestrictedWrapper._underlying_paragraphzs���{�r$c��|j|Sr+r��rC�keys  r%�__getitem__z_RestrictedWrapper.__getitem__s���{�3��r$c�t�|���|jvrtd|z���||j|<dS�Nz<%s may not be modified directly; use the associated property�r�r�rr�)rCr��values   r%�__setitem__z_RestrictedWrapper.__setitem__�sK���9�9�;�;�$�2�2�2�&��!�"�#�#�
#�!���C���r$c�p�|���|jvrtd|z���|j|=dSr�r�r�s  r%�__delitem__z_RestrictedWrapper.__delitem__�sI���9�9�;�;�$�2�2�2�&��!�"�#�#�
#�
�K����r$c�$�d�|jD��S)Nc3�4K�|]}t|��V��dSr+)r>)rS�ks  r%rTz._RestrictedWrapper.__iter__.<locals>.<genexpr>�s(����,�,�1��A���,�,�,�,�,�,r$r�rKs r%rYz_RestrictedWrapper.__iter__�s��,�,���,�,�,�,r$c�*�t|j��Sr+)r�r�rKs r%�__len__z_RestrictedWrapper.__len__�s���4�;���r$NFc��|��|�,|s*|j�td|����dS|j���}|�7td|���|�|����n%|r#td|���|��dS|j���S)zcCalls dump() on the underlying data object.

        See Deb822.dump for more information.
        Nz	IO[bytes]zIO[str])r�rsrrt�encode)rC�fdr6�	text_mode�as_strs     r%rsz_RestrictedWrapper.dump�s����>���	���� � ��k�2�!6�!6�7�7�7��t��[�%�%�'�'�F��#��[�"�%�%�+�+�F�M�M�(�,C�,C�D�D�D�D��
2��Y��#�#�)�)�&�1�1�1��4��{���!�!�!r$�T)NNF)rr r!r"r�r�r�r�r�r;rwrBr�r�r�rYr�rsryrzs@r%r�r�"s�������*�*�X$�)�+�+���?�?��[�?��L�L��[�L�.����������X�� � � �!�!�!����-�-�-� � � �
���"�"�"�"�"�"�"�"r$r�)�	metaclassc���eZdZdZejd��Zd�fd�	Zed���Z	d�Z
d�Zede
je
jd	�
��Zedd	���Zed
ejejd	�
��Zed��Z�xZS)rz�Represents a Files paragraph of a debian/copyright file.

    This kind of paragraph is used to specify the copyright and license for a
    particular set of files in the package.
    r�Tc���tt|���||��|rRd|vrtd���d|vrt	d|��d|vrt	d|��|jst	d|��d|jf|_dS)	Nr8z"Files" field requiredr2z'Files paragraph missing Copyright fieldr9z%Files paragraph missing License fieldz%Files paragraph has empty Files fieldr�)r:rr;r)r0�files�_default_re�!_FilesParagraph__cached_files_pat)rCr�r�r/rIs    �r%r;zFilesParagraph.__init__�s����
�n�d�#�#�,�,�T�3E�F�F�F��		K��d�"�"�0�1I�J�J�J��$�&�&��C�V�L�L�L���$�$��A�6�J�J�J��:�
K��A�6�J�J�J�#%�t�'7�"8����r$c�l�|tj��d���}||_||_||_|S)z�Create a new FilesParagraph from its required parts.

        :param files: The list of file globs.
        :param copyright: The copyright for the files (free-form text).
        :param license: The Licence for the files.
        F�r�)r�new_empty_paragraphr�	copyright�license)r�rrrrFs     r%�createzFilesParagraph.create�s=��
�C�&�:�<�<�QV�W�W�W����������	��r$c��|d}|jd|kr|t|j��f|_|jdS)z�Returns a regular expression equivalent to the Files globs.

        Caches the result until files is set to a different value.

        Raises ValueError if any of the globs are invalid.
        rrre)r
r�r)rC�	files_strs  r%�
files_patternzFilesParagraph.files_pattern�sE����M�	��"�1�%��2�2�'0�+�d�j�2I�2I�&J�D�#��&�q�)�)r$c�`�|���}|�dS|�|��duS)z8Returns True iff filename is matched by a glob in Files.NF)r�match)rCr`�pats   r%r_zFilesParagraph.matches�s6��� � �"�"���;��5��y�y��"�"�$�.�.r$r8F�r�r�r�r2)r�r9�Comment)TT)rr r!r"r�r�r	r;r�rrr_rr�r�r�rrr9r�commentryrzs@r%rr�s�����������"�*�R�.�.�K�9�9�9�9�9�9�"����[��(*�*�*�/�/�/�
�O��/�2��%�%�
9�
9�
9�E� ����>�>�>�I��o��G�,�W�^�����G��o�i�(�(�G�G�G�G�Gr$rc���eZdZdZd
�fd�	Zed���Zedej	ej
d���Zed��Zed	��Z
�xZS)ra Represents a standalone license paragraph of a debian/copyright file.

    Minimally, this kind of paragraph requires a 'License' field and has no
    'Files' field.  It is used to give a short name to a license text, which
    can be referred to from the header or files paragraphs.
    Tc���tt|���||��|r&d|vrtd���d|vrtd���dSdS)Nr9z"License" field requiredr8z%input appears to be a Files paragraph)r:rr;r)r�s   �r%r;zLicenseParagraph.__init__sv���
���%�%�.�.�t�5G�H�H�H��	=���$�$�0�1K�L�L�L��$���0�;�=�=�=�		=�	=��r$c��t|t��std���|tj��d���}||_|S)z2Returns a LicenseParagraph with the given license.z"license must be a License instanceFr)rMr9rNrr
r)r�rris   r%rzLicenseParagraph.createsS��
�'�7�+�+�	B��@�A�A�A��C�.�B�D�D�Y^�_�_�_�	�#�	���r$r9Frrr8r)rr r!r"r;r�rrr9r�r�rr�_LicenseParagraph__filesryrzs@r%rrs����������=�=�=�=�=�=�����[���o��G�,�W�^�����G��o�i�(�(�G��o�g�&�&�G�G�G�G�Gr$rc�~��eZdZdZd�fd�	Zd�Zd�Zeded���Z	ed	e�
��Z
edejej
���Zed
��Zed��Zed��Zedejej
���Zed��Zedejej
���Zedejej
���Z�xZS)rz�Represents the header paragraph of a debian/copyright file.

    Property values are all immutable, such that in order to modify them you
    must explicitly set them (rather than modifying a returned reference).
    Nc�l��|�tj��}t|d<d|vr(t�d��|d|d<|d=tt|���|��t��}|j	}|tkrh|�f|�
d��s|dz
}|�d��r
d|dd�z}|tvr!t�d	��||_	|�td
���|tvrt�d|��dSdS)z�Initializer.

        :param data: A Deb822ParagraphElement object for underlying data.  If None, a
            new one will be created.
        N�FormatzFormat-SpecificationzEuse of deprecated "Format-Specification" field; rewriting as "Format"�/zhttp:zhttps:%s�zFixing Format URLz0input is not a machine-readable debian/copyrightzformat not known: %r)rr
�_CURRENT_FORMATr,r-r:rr;r>�format�endswithr��_KNOWN_FORMATSr')rCr��fmtrIs   �r%r;zHeader.__init__5sQ����<�)�=�?�?�D�,�D��N�!�T�)�)��N�N�4�
5�
5�
5�!�"8�9�D��N��+�,�
�f�d���$�$�T�*�*�*��e�e���k���/�!�!�c�o��<�<��$�$�
��s�
���~�~�g�&�&�
+� �3�q�r�r�7�*���n�$�$����2�3�3�3�!����;�)�B�D�D�
D��n�$�$��N�N�1�3�7�7�7�7�7�%�$r$c��|jtvS)z%Returns True iff the format is known.)r$r&rKs r%�known_formatzHeader.known_format]s���{�n�,�,r$c�"�|jtkS)z2Returns True iff the format is the current format.)r$r#rKs r%�current_formatzHeader.current_formatbs���{�o�-�-r$r F)r�r�z
Upstream-Name)r�zUpstream-Contact)r�r��Source�
Disclaimerrr9r2zFiles-ExcludedzFiles-Includedr+)rr r!r"r;r)r+rr~r$�
upstream_namer�r�r��upstream_contact�source�
disclaimerrr9rr�files_excluded�files_includedryrzs@r%rr.sl���������&8�&8�&8�&8�&8�&8�P-�-�-�
.�.�.��_���%�9�9�9�F�$�O���.�.�.�M�'���Z�%8�� �"�"�"���_�X�
&�
&�F� ���.�.�J��o�i�(�(�G��o��G�,�W�^�E�E�E�G� ���,�,�I�$�_��:�#6�� �"�"�"�N�%�_��:�#6�� �"�"�"�N�N�N�N�Nr$r)@r"�collectionsrU�loggingr�r��typingrrrrrrr	r
rrr
rrr�ParagraphTypes�AllParagraphTypes�ImportError�debian._deb822_reprorrrrr�
debian.deb822rrrr#r�r&�	getLoggerrr,�	Exceptionrr'r�r)r0�objectr2r~r�r�r�r�r�r��
namedtupler9r��typer�r�rrrr#r$r%�<module>rAs���	�	�6������������	�	�	�	�	�	�	�	���������������������������������� �?�@�N��L�M���������M�M�M�������������������@�?�?�?�?�?�?�?�	�-�-�-�-�-�-�-���	�	�	��D�	����I���������

��	�8�	$�	$��4�4�4�4�4�I�4�4�4�Q�Q�Q�Q�Q�e�Q�Q�Q�������
�������z�z�z�z�z��z�z�z�z
�
�
�(�(�(�(�(��(�(�(�V�����f����B	2�	2�	2�
 �
 �
 �
2�
2�
2� ���*P�P�P�P�P�$�k�$�Y��@�@�P�P�P�F+@�+@�+@�\�����T����0N"�N"�N"�N"�N"�>�N"�N"�N"�N"�bN)�N)�N)�N)�N)�'�N)�N)�N)�b''�''�''�''�''�)�''�''�''�TU"�U"�U"�U"�U"�
�U"�U"�U"�U"�U"s#�0A	�	A�A�-A4�4A<�;A<