HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //proc/self/root/lib64/python3.9/site-packages/wrapt/__pycache__/patches.cpython-39.pyc
a

�܃gT�@s�ddlZddlZejddkZer*efZnefZddlmZdd�Z	dd�Z
d	ifd
d�ZGdd
�d
e�Z
d	ifdd�Zdd�Zdd�Zddd�Zdd�ZdS)�N����FunctionWrappercCsnt|t�rt|�tj|}|}|�d�}|d}dd�}|||�}|dd�D]}|}|||�}qP|||fS)N�.rcSsNt�|�r@t�|�D] }|t|�vrt|�|Sqt||�St||�SdS�N)�inspect�isclassZgetmro�vars�getattr)�parent�	attribute�cls�r�3/usr/lib64/python3.9/site-packages/wrapt/patches.py�lookup_attribute&s

z&resolve_path.<locals>.lookup_attributer)�
isinstance�string_types�
__import__�sys�modules�split)�module�namer�pathr
r�originalrrr�resolve_paths




rcCst|||�dSr)�setattr)rr
�replacementrrr�apply_patch8srrc	Cs6t||�\}}}||g|�Ri|��}t|||�|Sr)rr)	rr�factory�args�kwargsrr
r�wrapperrrr�wrap_object;sr$c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�AttributeWrappercCs||_||_||_||_dSr)r
r r!r")�selfr
r r!r"rrr�__init__IszAttributeWrapper.__init__cCs(|j|j}|j|g|j�Ri|j��Sr)�__dict__r
r r!r")r&�instance�owner�valuerrr�__get__OszAttributeWrapper.__get__cCs||j|j<dSr�r(r
)r&r)r+rrr�__set__SszAttributeWrapper.__set__cCs|j|j=dSrr-)r&r)rrr�
__delete__VszAttributeWrapper.__delete__N)�__name__�
__module__�__qualname__r'r,r.r/rrrrr%Gsr%c	Cs<|�dd�\}}t||�d}t||||�}t|||�|S)Nrrr)�rsplitrr%r)	rrr r!r"rr
rr#rrr�wrap_object_attributeYs
r4cs�fdd�}t�|�S)NcsH|d}|dur�}n(t�|�r.��d|�}n��|t|��}t||�S)Nr�rr	r,�typer)�wrappedr)r!r"�target_wrapped�target_wrapper�r#rr�_wrapperfs
z"function_wrapper.<locals>._wrapperr�r#r;rr:r�function_wrapperes	r=cCst||t|f�Sr�r$r�rrr#rrr�wrap_function_wrapperqsr@cs���fdd�}|S)Ncst��t|�f�Srr>r:��enabledrrrrr;usz(patch_function_wrapper.<locals>._wrapperr)rrrBr;rrAr�patch_function_wrappertsrCcs��fdd�}|S)Ncs���fdd�}t�|�S)NcsX|d}|dur��n(t�|�r.��d|��n��|t|������fdd�}t||�S)Nrc
sVt���\}}}t|��}t|||�z||i|��Wt|||�St|||�0dSr)rrr)r7r)r!r"rr
rr)rrr9rr�_execute�s
�zRtransient_function_wrapper.<locals>._decorator.<locals>._wrapper.<locals>._executer5)r7r)r!r"r8rDr?)r9rr;{s
z@transient_function_wrapper.<locals>._decorator.<locals>._wrapperrr<�rrr:r�
_decoratorzsz.transient_function_wrapper.<locals>._decoratorr)rrrFrrEr�transient_function_wrapperysrG)N)rr�version_infoZPY2Z
basestringr�strZ	__wrapt__rrrr$�objectr%r4r=r@rCrGrrrr�<module>s)