Warning: chmod(): No such file or directory in /home/tuempresavirtual.cl/public_html/wp-content/plugins/appointment-hour-booking/app-booking-plugin.php on line 3
403WebShell
403Webshell
Server IP : 186.64.123.29  /  Your IP : 216.73.217.94
Web Server : LiteSpeed
System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : tuemp9827 ( 1016)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/glib-2.0/codegen/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/glib-2.0/codegen/__pycache__/codegen_rst.cpython-310.pyc
o

�*c�(�@s.ddlZddlZddlmZGdd�d�ZdS)�N�)�utilsc@sheZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZdS)�RstCodeGeneratorz3Generates documentation in reStructuredText format.cCs||_|��dS)N)�ifaces�_generate_expand_dicts)�selfr�r�*/usr/share/glib-2.0/codegen/codegen_rst.py�__init__szRstCodeGenerator.__init__cCs�g}|�d�D]G}|��}|dkr|�d�q|jD]}|�||j|�}q|jD]}|�||j|�}q)|rIt�	ddd�|�}t�	ddd�|�}|�|�qd�
|�S)z)Expands parameters and constant literals.�
�z@[a-zA-Z0-9_]*cS�d|�d�dd�dS�Nz``rr��group��mrrr	�<lambda>%�z*RstCodeGenerator._expand.<locals>.<lambda>z%[a-zA-Z0-9_]*cSr
rrrrrr	r+r)�split�strip�append�_expand_member_dict_keys�replace�_expand_member_dict�_expand_iface_dict_keys�_expand_iface_dict�re�sub�join)r�s�expandParamsAndConstants�res�line�keyrrr	�_expands.


��
zRstCodeGenerator._expandcCsi|_i|_|jD]n}d|j��}d|j�d�}||j|<|jD]}d|j|jf}d|j�d|j�d�}||j|<q |jD]}d|j|jf}d|j�d|j�d�}||j|<q>|jD]}d|j|jf}d|j�d	|j�d�}||j|<q\q	t|j��d
d�|_	t|j��d
d�|_
dS)
z9Generates the dictionaries used to expand gtk-doc sigils.�#�`z`_z%s.%s()�.z#%s::%s�::z#%s:%s�:T)�reverseN)rrr�name�methods�signals�
properties�sorted�keysrr)r�ir$�valuerr �prrr	r1s2




�
�
�z'RstCodeGenerator._generate_expand_dictscCs�t|j�}d|j�d�dd||jd|dddddd|j�d�d|j��d|�|jd�dg}|jr<|d	|j�d
�dg7}|jrE|gd�7}|dg7}d�|�S)
z2Generates the header and preamble of the document.z.. _r*r�=z-----------�Descriptionz
 Description:TzInterface available since: r()�.. warning::rz    This interface is deprecated.rrr)	�lenr,�doc_string_briefrr%�
doc_string�since�
deprecatedr)r�iface�
header_lenr"rrr	�_generate_headerRs6
��

z!RstCodeGenerator._generate_headerc	Cs:dt|�|dt|�dd|�d|�d�ddg}d�|�S)z)Generates a section with the given title.�-rz.. � r*r)r8r)r�titler,r"rrr	�_generate_sectionws

�
	z"RstCodeGenerator._generate_sectioncCs�g}|jD]Z}|j�d|j��}|jr|jrd}n|jrd}nd}||dt|�dddd|j�d	|�d	|j��dd|�|jd
�dg
7}|jrQ|d|j�d�dg7}|j	rZ|gd
�7}|dg7}qd�
|�S)z!Generates the properties section.r*�	readwrite�writable�readable�^rr)�    rATzProperty available since: r()r7rz   This property is deprecated.rrr)r/r,rFrEr8�	signaturer%r:r;r<r)rr=r"r4rB�accessrrr	�_generate_properties�s:

��
z%RstCodeGenerator._generate_propertiescCs.ddg}t|j�}t|j�}|dkr!|dkr!|d|j�d�g7}nl|d|j�d�g7}t|j�D]*\}}||dkrL|dkrL|d|j�d	|j��g7}q0|d|j�d	|j�d
�g7}q0t|j�D]&\}}||dkrx|d|j�d	|j��g7}q`|d|j�d	|j�d
�g7}q`|ddg7}|dg7}d
�|�S)z/Generates the method signature as a code block.r)rrrH� ()� (rz	      IN rA�,z
      OUT �    )r)r8�in_args�out_argsr,�	enumeraterIr)r�methodr"�	n_in_args�
n_out_args�idx�argrrr	�_generate_method_signature�sD�

�������

z+RstCodeGenerator._generate_method_signaturecCs�g}|jD]\}|j�d|j��}||dt|�d|�|�d|�|jd�dg7}|jD]}|�|jd�}||j�d|��dg7}q*|dg7}|jrS|d|j�d�dg7}|jr\|gd�7}|dg7}qd�	|�S)	zGenerates the methods section.r(rGrT�  zMethod available since: )r7rz   This method is deprecated.rrr)
r-r,r8rXr%r:rPr;r<r)rr=r"rrB�a�arg_descrrr	�_generate_methods��:

�
	�
�
z"RstCodeGenerator._generate_methodscCs�ddg}t|j�}|dkr|d|j�d�g7}n<|d|j�d�g7}t|j�D]&\}}||dkr?|d|j�d	|j��g7}q'|d|j�d	|j�d
�g7}q'|ddg7}|dg7}d�|�S)
zGenerates the signal signature.r)rrrHrLrMrz      rArNrOr)r8�argsr,rRrIr)r�signalr"�n_argsrVrWrrr	�_generate_signal_signature�s2�
�����

z+RstCodeGenerator._generate_signal_signaturecCs�g}|jD]\}|j�d|j��}||dt|�d|�|�d|�|jd�dg7}|jD]}|�|jd�}||j�d|��dg7}q*|dg7}|jrS|d|j�d�dg7}|jr\|gd�7}|dg7}qd	�	|�S)
zGenerates the signals section.r)rGrTrYzSignal available since: r()r7rz   This signal is deprecated.rrr)
r.r,r8rar%r:r^r;r<r)rr=r"r rBrZr[rrr	�_generate_signalsr]z"RstCodeGenerator._generate_signalsc	Cs�|jD]v}ttj�||�d|j�d��d��[}|�|�|��t|j	�dkr8|�|�
d|j��|�|�|��t|j�dkrQ|�|�
d|j��|�|�
|��t|j�dkrj|�|�
d|j��|�|�|��Wd�n1stwYqdS)	z7Generates the reStructuredText file for each interface.r@z.rst�wr�
Properties�Methods�SignalsN)r�open�os�pathrr,�writer?r8r/rCrKr-r\r.rb)r�rst�outdirr2�outfilerrr	�generate?s 
$����zRstCodeGenerator.generateN)�__name__�
__module__�__qualname__�__doc__r
r%rr?rCrKrXr\rarbrnrrrr	rs!%
')&&r)rhrrrrrrrr	�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit