__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

7�g:y���SrSSKrSSKrSSKrSSKrSSKrSSKJrJrJ	r	J
r
JrJrJ
r
JrJrJrJrJr SSKJrJrJrJrJr SSKJrJr SSKJr \Sr\SrS	r \!"\ /5r"\RF"\$5r%"S
S\&5r'"SS
\'5r("SS\'\)5r*S\+S\,SS4Sjr-"SS5r.S\+S\+4Sjr/"SS5r0"SS5r1S\
\+S\
\+4Sjr2Sr3Sr4S\+S\\+4Sjr5"S S!\Rl"S!S"55r7S#r8"S$S%\95r:"S&S'\:S(9r;"S)S*\;5r<"S+S,\;5r="S-S.\;5r>g!\a N�f=f)/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�	FrozenSet�IO�Iterable�Iterator�List�Optional�Pattern�Text�Tuple�Union�cast)�parse_deb822_file�Deb822ParagraphElement�Deb822FileElement�'Deb822NoDuplicateFieldsParagraphElement�SyntaxOrParseError)�RestrictedField�RestrictedFieldError)�Deb822ValueType)�FilesParagraph�LicenseParagraph)�HeaderrrzBhttps://www.debian.org/doc/packaging-manuals/copyright-format/1.0/c��\rSrSrSrSrg)�Error�Pz)Base class for exceptions in this module.�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��2/usr/lib/python3/dist-packages/debian/copyright.pyrrPs��3r%rc��\rSrSrSrSrg)�NotMachineReadableError�TzFRaised when the input is not a machine-readable debian/copyright file.rNrrr%r&r(r(Ts��Pr%r(c��\rSrSrSrSrg)�MachineReadableFormatError�Xz�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.
rNrrr%r&r+r+Xs��r%r+�msg�strict�returnc�R�U(a[U5e[RU5 g�N)r+�logger�warning)r-r.s  r&�	_complainr4`s��
�(��-�-�
�N�N�3�r%c�^�\rSrSrSrSU4Sjjr\S5r\RS5rSr	Sr
SrS	rS
r
SrSrSS
jrSrU=r$)�	Copyright�fa%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.
c�>�[[U]5 /UlUb�Sn[	XU(+S9UlUR
HznUc
[U5nMSU;a'[XcUS9nURRU5 M@SU;a([Xc5nURRU5 Mn[SU5 M| U(d[S5eX@lg[R "5Ul[5UlUR
RURR"5 URRUR5 g![an[[U55eSnAff=f)ayCreate 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)�superr6�__init__�_Copyright__paragraphsr�_Copyright__filerr(�strrr�appendrr4�_Copyright__headerr�new_empty_file�_underlying_paragraph)
�selfr9r:r.�header�e�p�pf�pl�	__class__s
         �r&r?�Copyright.__init__�s?���"	�i��'�)�������F�
6�/�!)�@F�J�H���
�[�[���>�#�A�Y�F���\�'��&�A�B��%�%�,�,�R�0��!�^�)�!�4�B��%�%�,�,�R�0��1�28�:�!��-�.F�G�G�"�M�,�:�:�<�D�K�"�H�D�M��K�K���t�}�}�B�B�C����$�$�T�]�]�3��-&�
6�-�c�!�f�5�5��
6�s�E�
E9� E4�4E9c��UR$)zThe file header paragraph.)rD�rGs r&rH�Copyright.header�s���}�}�r%c�P�[U[5(d[S5eXlg)Nzvalue must be a Header object)�
isinstancer�	TypeErrorrD)rG�hdrs  r&rHrQ�s"���#�v�&�&��;�<�<��
r%c�h�[R"UR/SUR55$)z�Returns 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�$# �UHov� M g7fr1r��.0rJs  r&�	<genexpr>�+Copyright.all_paragraphs.<locals>.<genexpr>�s���.L�:K�Q�q�:K�s�)�	itertools�chainrHr@rPs r&�all_paragraphs�Copyright.all_paragraphs�s'��������}�.L�$�:K�:K�.L�M�Mr%c�"�UR5$)zHIterate over all paragraphs

see all_paragraphs() for more information

)r^rPs r&�__iter__�Copyright.__iter__�s���"�"�$�$r%c�(�SUR5$)z>Returns an iterator over the contained FilesParagraph objects.c3�T# �UHn[U[5(dMUv� M  g7fr1)rSrrXs  r&rZ�1Copyright.all_files_paragraphs.<locals>.<genexpr>�s���N�,�a�
�1�n�0M���,���(�	(�r@rPs r&�all_files_paragraphs�Copyright.all_files_paragraphs�s��O�4�,�,�N�Nr%c�l�SnUR5HnURU5(dMUnM U$)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)rh�matches)rG�filename�resultrJs    r&�find_files_paragraph�Copyright.find_files_paragraph�s7�����*�*�,�A��y�y��"�"���-��
r%c�F�[U[5(d[S5eSn[UR5Hup4[U[5(dMUnM  URRUS-U5 URRUS-UR5 g)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)rSrrT�	enumerater@�insertrArF)rG�	paragraph�last_i�irJs     r&�add_files_paragraph�Copyright.add_files_paragraph�s����)�^�4�4��I�J�J����d�/�/�0�D�A��!�^�,�,���1�	
��� � ��!��Y�7������6�A�:�y�'F�'F�Gr%c�(�SUR5$)z=Returns an iterator over standalone LicenseParagraph objects.c3�T# �UHn[U[5(dMUv� M  g7fr1)rSrrXs  r&rZ�3Copyright.all_license_paragraphs.<locals>.<genexpr>s���P�,�a�
�1�>N�0O���,�rfrgrPs r&�all_license_paragraphs� Copyright.all_license_paragraphss��Q�4�,�,�P�Pr%c���[U[5(d[S5eURR	U5 UR
R	UR5 g)z_Adds a LicenceParagraph to this object.

The paragraph is inserted after any other paragraphs.
z-paragraph must be a LicenseParagraph instanceN)rSrrTr@rCrArF)rGrvs  r&�add_license_paragraph�Copyright.add_license_paragraphsJ���)�%5�6�6��K�L�L���� � ��+������9�:�:�;r%c�d�URR5nUbURU5 gU$)a9Dumps 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)rA�dump�write)rG�f�ss   r&r��Copyright.dumps.��
�K�K������=�
�G�G�A�J���r%)�__file�__header�__paragraphs)Nzutf-8Tr1)rr r!r"r#r?�propertyrH�setterr^rarhrnryr~r�r�r$�
__classcell__�rMs@r&r6r6fsl���"�H14�f����
�]�]����	N�%�O�
�H�"Q�
	<��r%r6r�c�(�SU;a[S5eU$)zNReturns s if it is a single line; otherwise raises MachineReadableFormatError.�
zmust be single line)r+�r�s r&�_single_liner�#s���q�y�(�)>�?�?��Hr%c�8�\rSrSrSr\S5r\S5rSrg)�
_LineBasedi*z@Namespace for conversion methods for line-based lists as tuples.c�~�[SSU=(d SR5R5555$)z?Returns the lines in 's', with whitespace stripped, as a tuple.c3�8# �UHnU(dMUv� M g7fr1r�rY�vs  r&rZ�&_LineBased.from_str.<locals>.<genexpr>2s����N����Q�N�s��	c3�@# �UHoR5v� M g7fr1)�strip)rY�lines  r&rZr�3s���N�/M�t�j�j�l�l�/M�s��)�tupler��
splitlinesr�s r&�from_str�_LineBased.from_str.s7����N���R���/@�/K�/K�/M�N���	r%c���[U5nU(dgSn[U5S:XaU"US5$S/nUHnURSU"U5-5 M SRU5$)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�l�UR5nU(d[S5eSU;a[S5eU$)N�values must not be emptyr�z values must not contain newlines)r�r+r�s r&�process_and_validate�/_LineBased.to_str.<locals>.process_and_validateBs8�����	�A��0�1K�L�L��q�y�0�6�8�8��Hr%rrrr�� r�)�list�lenrC�join)�seq�lr��tmpr�s     r&�to_str�_LineBased.to_str6sj��
��I����	��q�6�Q�;�'��!��-�-��d���A��J�J�s�1�!�4�4�5���y�y��~�r%rN)	rr r!r"r#�staticmethodr�r�r$rr%r&r�r�*s-��J��������r%r�c�\�\rSrSrSr\R"S5r\S5r	\
S5rSrg)�_SpaceSeparatediUzENamespace for conversion methods for space-separated lists as tuples.z\sc�T�[SU=(d SR555$)z>Returns the values in s as a tuple (empty if only whitespace).c3�6# �UHo(dMUv� M g7fr1rr�s  r&rZ�+_SpaceSeparated.from_str.<locals>.<genexpr>_s���7� 1�1�Q�Q�Q� 1�s�
�	r�)r��splitr�s r&r��_SpaceSeparated.from_str[s ���7���b��� 1�7�7�7r%c��[U5nU(dg/nUHanURRU5(a[S5eUR	5nU(d[S5eURU5 Mc SR
U5$)zAReturns the sequence as a space-separated string (None if empty).Nz"values must not contain whitespacer�r�)r��
_has_space�searchr+r�rCr�)�clsr�r�r�r�s     r&r��_SpaceSeparated.to_stras|��
��I�������A��~�~�$�$�Q�'�'�0�8�:�:����	�A��0�1K�L�L��J�J�q�M���x�x��}�r%rN)
rr r!r"r#�re�compiler�r�r��classmethodr�r$rr%r&r�r�Us;��O����E�"�J��8��8�
���r%r�c�<�Ucg[UR55$)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�vs��	�y��!�!�,�,�.�1�1r%c��/n[U5H8up#US:waUR5(dSnSU-nURU5 M: SRU5$)z?Same as format_multline, but taking input pre-split into lines.r�.r�r�)rtr�rCr�)�lines�	out_linesrxr�s    r&r�r��sY���I��U�#�����6��:�:�<�<�����:�D������$��9�9�Y��r%c�>�UcgSR[U55$)aOInverse 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���9�9�-�a�0�1�1r%c���UR5n[U5H@up#US:XaM
URS5(aUSSnO[S5eUS:XaSnX1U'MB U$)zhSame as parse_multiline, but returns a list of lines.

(This is the inverse of format_multiline_lines.)
rr�rrNz"continued line must begin with " "r�r�)r�rt�
startswithr+)r�r�rxr�s    r&r�r��sn��

�L�L�N�E��U�#�����6���?�?�3������8�D�,�4�6�
6��3�;��D��a��$��Lr%c�N^�\rSrSrSrSU4Sjjr\S5rS\4Sjr	Sr
U=r$)	r=i�z7Represents the contents of a License field.  Immutable.c�N>�[[U]U[U5U=(d SS9$)atCreates 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>r=�__new__r�)r�r�r�rMs   �r&r��License.__new__�s0����W�c�*��,�x�0��
��+�E�	Er%c
��Ucg[U5nU(dU"S5$U"USSR[R"USS55S9$)Nr�rr�rr)r�)r�r�r\�islice)r�r�r�s   r&r��License.from_str�sK��
�9��(��+����r�7�N��5��8�$�)�)�I�,<�,<�U�A�t�,L�"M�N�Nr%r/c�d�[UR/URR5-5$r1)r�r�r�r�rPs r&r��License.to_str�s%��%�t�}�}�o��	�	�8L�8L�8N�&N�O�Or%r)r�)rr r!r"r#r�r�r�rBr�r$r�r�s@r&r=r=�s6���A�E��O��O�P��P�Pr%r=z
synopsis textc��[R"5n[U5H�up#US:waURS5 Sn[	U5nX$:dM0X2nUS-
nUS:XaURS5 O�US:XaURS5 OUS:XaTX$:a
X2nUS-
nO[S	5eUS
;a&UR[R"U55 O3[SU-5eUR[R"U55 X$:aM�M� [R"UR5[R[R-5$)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.

The pattern should be used with the `re.fullmatch` function to provide
anchoring.

Raises MachineReadableFormatError if any of the globs is illegal.
r�|rr�*z.*�?r��\z#single backslash not allowed at endz\?*zinvalid escape sequence: \%s)�io�StringIOrtr�r�r+r��escaper��getvalue�	MULTILINE�DOTALL)�globs�bufrx�glob�n�cs      r&�globs_to_rer��s��
�+�+�-�C��U�#�����6��I�I�c�N�
����I���e���A�
��F�A��C�x��	�	�$���c���	�	�#���d���5���A���F�A�4�=�?�?���;��I�I�b�i�i��l�+�4�7�!�;�=�=��	�	�"�)�)�A�,�'�)�e�$�6�:�:�c�l�l�n�b�l�l�R�Y�Y�&>�?�?r%c�,^�\rSrSrSrU4SjrSrU=r$)�_ClassInitMetaiamMetaclass 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�P>�[[U]XU5 URU5 gr1)r>r�r?�_class_init)r��name�bases�attrsrMs    �r&r?�_ClassInitMeta.__init__s"���	�n�c�+�D��?�����r%r)rr r!r"r#r?r$r�r�s@r&r�r�s�����r%r�c�^�\rSrSrSr\"5r\S5r\S5r	SU4Sjjr
\S5rSr
SrS	rS
rS\4SjrSS
jrSrU=r$)�_RestrictedWrapperia�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:
        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��/nUR5HVup4[U[5(dMURURR55 UR
X45 MX [U5Ulgr1)	�itemsrSrrCr��lower�)_RestrictedWrapper__init_restricted_field�	frozenset�%_RestrictedWrapper__restricted_fields)r��	new_attrs�restricted_fields�	attr_name�vals     r&r��_RestrictedWrapper._class_initIs_����'�o�o�/�N�I��#��/�/�!�(�(������)9�:��+�+�I�;�0�#,�,=�">��r%c
�`^�U4SjnU4Sjn[X[X4STR55 g)Nc�>�URRTR5nTRbTRU5$U$r1)�_RestrictedWrapper__data�getr�r��rGr��fields  �r&�getter�:_RestrictedWrapper.__init_restricted_field.<locals>.getterTs7����+�+�/�/�%�*�*�-�C��~�~�)��~�~�c�*�*��Jr%c�>�UbTRbTRU5nUcOTR(a3TRUR;aURTR	gg[	S5eXRTR'g)Nzvalue must not be None)r��
allow_noner�rrTrs  �r&r��:_RestrictedWrapper.__init_restricted_field.<locals>.setter[sp�����5�<�<�#;��l�l�3�'���{��#�#��z�z�T�[�[�0� �K�K��
�
�3�1�$�$<�=�=�*-���E�J�J�'r%)�setattrr�r�)r�r�rrr�s  `  r&�__init_restricted_field�*_RestrictedWrapper.__init_restricted_fieldRs&���	�	.�	�����u�z�z� J�Kr%c��>�[[U]5 U(a@[U[5(d+[S[
URR5-5eXl	g)zEInitializes the wrapper over 'data', a Deb822ParagraphElement object.z!Paragraph has duplicated fields: N)
r>r�r?rSr�
ValueErrorrBrMr!r�rG�data�_internal_validaterMs   �r&r?�_RestrictedWrapper.__init__jsH���	� �$�0�2��j��7^�&_�&_��@�3�t�~�~�Gb�Gb�Cc�c�d�d��r%c��UR$r1�rrPs r&rF�(_RestrictedWrapper._underlying_paragraphrs���{�{�r%c� �URU$r1r�rG�keys  r&�__getitem__�_RestrictedWrapper.__getitem__ws���{�{�3��r%c�x�UR5UR;a[SU-5eX RU'g�Nz<%s may not be modified directly; use the associated property�r�r�rr)rGr�values   r&�__setitem__�_RestrictedWrapper.__setitem__{s>���9�9�;�$�2�2�2�&��!�"�#�
#�!���C�r%c�v�UR5UR;a[SU-5eURU	grrrs  r&�__delitem__�_RestrictedWrapper.__delitem__�s>���9�9�;�$�2�2�2�&��!�"�#�
#�
�K�K��r%c�(�SUR5$)Nc3�8# �UHn[U5v� M g7fr1)rB)rY�ks  r&rZ�._RestrictedWrapper.__iter__.<locals>.<genexpr>�s���,��1��A����s�rrPs r&ra�_RestrictedWrapper.__iter__�s��,����,�,r%r/c�,�[UR5$r1)r�rrPs r&�__len__�_RestrictedWrapper.__len__�s���4�;�;��r%c�r�Ub�Uc-U(d&URR[SU55 gURR5nUb+[SU5RUR	U55 gU(a[SU5RU5 gURR5$)zSCalls dump() on the underlying data object.

See Deb822.dump for more information.
Nz	IO[bytes]zIO[str])rr�rr��encode)rG�fdr:�	text_mode�as_strs     r&r��_RestrictedWrapper.dump�s����>���	���� � ��k�2�!6�7���[�[�%�%�'�F��#��[�"�%�+�+�F�M�M�(�,C�D����Y��#�)�)�&�1���{�{���!�!r%)�__data�T)NNF)rr r!r"r#r�r�r�r�r�r?r�rFrrr!ra�intr)r�r$r�r�s@r&r�r�s����*�X$�+���?��?��L��L�.����� �!��-� �� ����"�"r%r�)�	metaclassc�^�\rSrSrSr\R"S5rSU4Sjjr\	S5r
SrSr\
"S\R\R S	S
9r\
"SS	S9r\
"S
\R\R S	S
9r\
"S5rSrU=r$)ri�z�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�c�>�[[U]X5 U(aRSU;a[S5eSU;a[	SU5 SU;a[	SU5 UR
(d[	SU5 SUR4Ulg)	Nr<z"Files" field requiredr6z'Files paragraph missing Copyright fieldr=z%Files paragraph missing License fieldz%Files paragraph has empty Files fieldr�)r>rr?r+r4�files�_default_re�!_FilesParagraph__cached_files_pat)rGrrr.rMs    �r&r?�FilesParagraph.__init__�st���
�n�d�,�T�F���d�"�0�1I�J�J��$�&��C�V�L���$��A�6�J��:�:��A�6�J�#%�t�'7�'7�"8��r%c�^�U"[R"5SS9nXlX$lX4lU$)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_paragraphr7�	copyright�license)r�r7r>r?rJs     r&�create�FilesParagraph.create�s/��
�&�:�:�<�QV�W�������	��r%c��USnURSU:waU[UR54UlURS$)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.
r7rrr)r9r�r7)rG�	files_strs  r&�
files_pattern�FilesParagraph.files_pattern�sG����M�	��"�"�1�%��2�'0�+�d�j�j�2I�&J�D�#��&�&�q�)�)r%c�P�UR5nUcgURU5SL$)z8Returns True iff filename is matched by a glob in Files.NF)rD�	fullmatch)rGrl�pats   r&rk�FilesParagraph.matches�s.��� � �"���;���}�}�X�&�d�2�2r%r<F�r�r�rr6)rr=�Comment)�__cached_files_pat)TT)rr r!r"r#r�r�r8r?r�r@rDrkrr�r�r�r7r>r=r?�commentr$r�r�s@r&rr�s������*�*�R�.�K�9�"����(*�3�
��/�2�2��%�%�%�
9�E� ���>�I���G�,�,�W�^�^���G��i�(�Gr%rc�^�\rSrSrSrSU4Sjjr\S5r\"S\	R\	RSS9r\"S5r
\"S	5rS
rU=r$)ri�aRepresents 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.
c�>�[[U]X5 U(a#SU;a[S5eSU;a[S5egg)Nr=z"License" field requiredr<z%input appears to be a Files paragraph)r>rr?r+rs   �r&r?�LicenseParagraph.__init__sK���
���.�t�H����$�0�1K�L�L��$��0�;�=�=��r%c��[U[5(d[S5eU"[R"5SS9nXlU$)z2Returns a LicenseParagraph with the given license.z"license must be a License instanceFr<)rSr=rTrr=r?)r�r?rvs   r&r@�LicenseParagraph.create
s@��
�'�7�+�+��@�A�A��.�B�B�D�Y^�_�	�#���r%r=FrJrKr<rr2)rr r!r"r#r?r�r@rr=r�r�r?rM�_LicenseParagraph__filesr$r�r�s@r&rr�sY����=�������G�,�,�W�^�^���G��i�(�G��g�&�Gr%rc�^�\rSrSrSrSU4SjjrS\4SjrS\4Sjr\	"S\
SS	9r\	"S
\
S9r\	"S\
R\
RS
9r\	"S5r\	"S5r\	"S5r\	"S\R\RS
9r\	"S5r\	"S\
R\
RS
9r\	"S\
R\
RS
9rSrU=r$)ri%z�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).
c�>�Uc[R"5n[US'SU;a [R	S5 USUS'US	[
[U]U5 [5nURnU[:waaUb^URS5(dUS-
nURS5(aSUSS-nU[;a[R	S	5 X l	Uc[S
5eU[;a[R	SU5 gg)zyInitializer.

: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_FORMATr2r3r>rr?rB�format�endswithr��_KNOWN_FORMATSr()rGr�fmtrMs   �r&r?�Header.__init__,s����<�)�=�=�?�D�,�D��N�!�T�)��N�N�4�
5�!�"8�9�D��N��+�,�
�f�d�$�T�*��e���k�k���/�!�c�o��<�<��$�$��s�
���~�~�g�&�&� �3�q�r�7�*���n�$����2�3�!���;�)�B�D�
D��n�$��N�N�1�3�7�%r%r/c�(�UR[;$)z%Returns True iff the format is known.)rZr\rPs r&�known_format�Header.known_formatTs���{�{�n�,�,r%c�(�UR[:H$)z2Returns True iff the format is the current format.)rZrYrPs r&�current_format�Header.current_formatXs���{�{�o�-�-r%rVF)r�rz
Upstream-Name)r�zUpstream-Contact)r�r��Source�
DisclaimerrKr=r6zFiles-ExcludedzFiles-Included)rZr1)rr r!r"r#r?�boolr`rcrr�rZ�
upstream_namer�r�r��upstream_contact�source�
disclaimerrMr=r?r>�files_excluded�files_includedr$r�r�s@r&rr%s�����&8�P-�d�-�.��.�
���%�9�F�$���.�M�'��Z�%8�%8�� � �"���X�
&�F� ��.�J��i�(�G���G�,�,�W�^�^�E�G� ��,�I�$��:�#6�#6�� � �"�N�%��:�#6�#6�� � �"�Nr%r)?r#�collectionsr\�loggingr�r��typingrrrrrrr	r
rrr
r�debian._deb822_reprorrrrr�
debian.deb822rrr�ImportError�ParagraphTypes�AllParagraphTypesrYr�r\�	getLoggerrr2�	Exceptionrr(r
r+rBrgr4r6r�r�r�r�r�r�r��
namedtupler=r��typer�r�rrrrr%r&�<module>rzs���	�8���	�	�
�
�
�
���@�	�-�
�;�<���H�I��I�������

�	�	�8�	$��4�I�4�Q�e�Q���
���3������z�z�z
�C�
�C�
�(�(�V��B2���
�2�(�3�-�2�
 �
2� ����S�	��(P�k�$�$�Y��@�P�D+@�\�T��0M"�>�M"�`N)�'�N)�b''�)�''�TS"�
�S"��Q�	��	�s�
E�E
�	E


Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 1.02 KB 0644
_arch_table.cpython-313.pyc File 15.82 KB 0644
_util.cpython-313.pyc File 16.72 KB 0644
_version.cpython-313.pyc File 634 B 0644
arfile.cpython-313.pyc File 14.71 KB 0644
changelog.cpython-313.pyc File 38.9 KB 0644
copyright.cpython-313.pyc File 35.68 KB 0644
deb822.cpython-313.pyc File 93.51 KB 0644
debfile.cpython-313.pyc File 23.15 KB 0644
debian_support.cpython-313.pyc File 29.56 KB 0644
debtags.cpython-313.pyc File 18.78 KB 0644
substvars.cpython-313.pyc File 16.85 KB 0644
watch.cpython-313.pyc File 9.93 KB 0644
Filemanager