https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/genshi/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/genshi/__pycache__/compat.cpython-310.pyc
o

!�b��@sxdZzddlZWn
eyddlZYnwddlZddlmZddlZejddkZ	e
fejZe	r8dd�Z
ndd�Z
dd	�Ze	r\dd
lmZzdd
lmZWney[eZYn	wddlmZmZe	rkdd
�Zndd
�Ze	rzdd�Zdd�Zndd�Zdd�ZzejZejZdd�ZWney�ejZZdd�ZYnwGdd�de�ZzejZWdSey�eZYdSw)z;Various Python version compatibility classes and functions.�N)�CodeType�cCs<|�dd�}d|�dd�d}t|�t|�krd|S|S)N�ascii�backslashreplace�'z\'�u)�encode�replace�len)�stringr�quoted�r
�//usr/lib/python3/dist-packages/genshi/compat.py�
stringrepr"s
rcCstd��)Nz8Python 2 compatibility function. Not usable in Python 3.)�RuntimeError)rr
r
rr)s�cCst|tj�S�N)�
isinstance�six�string_types��objr
r
r�isstring0sr)�StringIO)r�BytesIOcCs|�d�sJ�|dd�S)N�b���
startswith��bstrr
r
r�
wrapped_bytesBsr cCs|�d�sJ�|S)Nrrrr
r
rr Fsc
Cs4|j|j|j|j|j|j|j|j|j|j	|j
ddf
S)Nr
)�
co_nlocals�co_stacksize�co_flags�co_code�	co_consts�co_names�co_varnames�co_filename�co_name�co_firstlineno�	co_lnotab)�coder
r
r�get_code_paramsNs
�r-cCs6td|j|j|jdB|j|j|j|j||||jdd�S)Nr�@r
)	rr!r"r#r$r%r&r'r+�r,�filename�name�linenor
r
r�build_code_chunkTs

�r3cCs�g}t|d�r
|�|j�|�|j|j|j|j|j|j	|j
|j|j|j
g
�t|d�r1|�|j�|�|j�t|d�rC|�|j�n|�|j�t|d�rT|�|j�t|d�r_|�|j�t|d�rj|�|j�|�ddg�t|�S)N�co_posonlyargcount�co_qualname�co_linetable�co_endlinetable�co_columntable�co_exceptiontabler
)�hasattr�appendr4�extend�co_kwonlyargcountr!r"r#r$r%r&r'r(r)r5r*r6r+r7r8r9�tuple)r,�paramsr
r
rr-Zs,
�




cCsTt|d�r
|j|||d�Std|j|j|j|jdB|j|j|j	|j
||||jdd�S)Nr	)r(r)r*rr.r
)r:r	rr=r!r"r#r$r%r&r'r+r/r
r
rr3ys
��cC�|jSr)�srr
r
r�<lambda>��rBcCr@r)�valuerr
r
rrB�rCc@seZdZdS)�
_DummyASTItemN)�__name__�
__module__�__qualname__r
r
r
rrE�srE) �__doc__�ast�ImportError�_ast�sys�typesrr�version_info�
IS_PYTHON2�float�
integer_types�
numeric_typesrrr�	cStringIOr�ior r-r3�Ellipsis�
_ast_Ellipsis�Str�_ast_Str�_ast_Str_value�AttributeError�Constant�objectrE�
_ast_Constantr
r
r
r�<module>sZ
�
�


�
�

https://t.me/RX1948 - 2025