HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/site-packages/pip/_vendor/pygments/__pycache__/sphinxext.cpython-310.pyc
o

��i�@shdZddlZddlmZddlmZddlmZddlm	Z	dZ
dZd	Zd
Z
Gdd�de�Zd
d�ZdS)a
    pygments.sphinxext
    ~~~~~~~~~~~~~~~~~~

    Sphinx extension to generate automatic documentation of lexers,
    formatters and filters.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�nodes)�ViewList)�	Directive)�nested_parse_with_titlesz
.. module:: %s

%s
%s
zX
.. class:: %s

    :Short names: %s
    :Filenames:   %s
    :MIME types:  %s

    %s

zA
.. class:: %s

    :Short names: %s
    :Filenames: %s

    %s

z'
.. class:: %s

    :Name: %s

    %s

c@sDeZdZdZdZdZdZdZiZdd�Z	dd�Z
d	d
�Zdd�Zd
S)�PygmentsDoczn
    A directive to collect all lexers/formatters/filters and generate
    autoclass directives for them.
    F�rcCs�t�|_|jddkr|��}n|jddkr|��}n|jddkr(|��}ntd��t��}t	|�
d�dd�}t|j||�|jD]}|jj
jj�|�qC|jS)	Nr�lexers�
formatters�filtersz,invalid argument for "pygmentsdoc" directive�
�)�source)�set�	filenames�	arguments�document_lexers�document_formatters�document_filters�	ExceptionrZcompoundr�splitr�stateZdocument�settingsZrecord_dependencies�add�children)�self�out�nodeZvl�fn�r�I/usr/local/lib/python3.10/site-packages/pip/_vendor/pygments/sphinxext.py�runEs



zPygmentsDoc.runc
Cs�ddlm}g}i}i}t|��dd�d�D]r\}}|d}t|dd|g�}|j�|j�t||�}	|	j	s;t
d|�|	j	}
t|
t�rH|
�
d�}
|�|g��|d�|d	�pWd
d�|d��dd
��dd�pgd
d�|d�pod
|
f�||vr�|j	}t|t�r�|�
d�}|||<qt|��dd�d�D]8\}}||dur�td|f��||��d���d�}
|�t||
dt|
�f�|D]	}|�t|�q�q�d�|�S)Nr)�LEXERScS�|dS�Nrr��xrrr�<lambda>[�z-PygmentsDoc.document_lexers.<locals>.<lambda>��keyz&Warning: %s does not have a docstring.�utf8�, ��None��*�\*�_�\�cSr"r#rr$rrrr&qr'zMissing docstring for %s�.�-r)�$pip._vendor.pygments.lexers._mappingr!�sorted�items�
__import__rr�__file__�getattr�__doc__�print�
isinstance�bytes�decode�
setdefault�append�join�replacer�
splitlines�strip�rstrip�	MODULEDOC�len�LEXERDOC)rr!r�modulesZmoduledocstrings�	classname�data�module�mod�cls�	docstringZmoddocr�headingrrrrVsH


 �

��
zPygmentsDoc.document_lexersc

Cs�ddlm}g}t|��dd�d�D]I\}}|d}t|dd|g�}|j�|j�t||�}|j	}t
|t�r;|�d�}|j
}	|�t|	d�|d�pJd	d�|d
��dd�pVd	|f�qd
�|�S)Nr)�
FORMATTERScSr"r#rr$rrrr&r'z1PygmentsDoc.document_formatters.<locals>.<lambda>r(r*r+r,r-r.r/r0r)Zpip._vendor.pygments.formattersrSr7r8r9rrr:r;r<r>r?r@�__name__rB�FMTERDOCrCrD)
rrSrrLrMrNrOrPrQrRrrrr{s 



�
zPygmentsDoc.document_formatterscCsrddlm}g}|��D]'\}}|j�tj|jj�|j	}t
|t�r(|�d�}|�
t|j||f�qd�|�S)Nr)�FILTERSr*r)�pip._vendor.pygments.filtersrVr8rr�sysrK�
__module__r:r<r>r?r@rB�	FILTERDOCrTrC)rrVr�namerPrQrrrr�s


zPygmentsDoc.document_filtersN)
rTrY�__qualname__r<Zhas_contentZrequired_argumentsZoptional_argumentsZfinal_argument_whitespaceZoption_specr rrrrrrrr:s%rcCs|�dt�dS)NZpygmentsdoc)Z
add_directiver)Zapprrr�setup�sr])r<rXZdocutilsrZdocutils.statemachinerZdocutils.parsers.rstrZsphinx.util.nodesrrHrJrUrZrr]rrrr�<module>s

`