403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.216.37
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/lib/python3/dist-packages/twisted/python/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/lib/python3/dist-packages/twisted/python/__pycache__/monkey.cpython-38.pyc
U


W[��@s$ddlmZmZGdd�de�ZdS)�)�division�absolute_importc@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)�
MonkeyPatcherzn
    Cover up attributes with new objects. Neat for monkey-patching things for
    unit-testing purposes.
    cGs$g|_g|_|D]}|j|�qdS)N)�_patchesToApply�
_originals�addPatch)�selfZpatches�patch�r
�7/usr/lib/python3/dist-packages/twisted/python/monkey.py�__init__szMonkeyPatcher.__init__cCs|j�|||f�dS)z�
        Add a patch so that the attribute C{name} on C{obj} will be assigned to
        C{value} when C{patch} is called or during C{runWithPatches}.

        You can restore the original values with a call to restore().
        N)r�append�r�obj�name�valuer
r
rrszMonkeyPatcher.addPatchcCs,|jD] \}}}||f||fkrdSqdS)zc
        Has the C{name} attribute of C{obj} already been patched by this
        patcher?
        TF)r)rrr�o�n�vr
r
r�_alreadyPatched#szMonkeyPatcher._alreadyPatchedcCsF|jD]:\}}}|�||�s4|j�||t||�f�t|||�qdS)z�
        Apply all of the patches that have been specified with L{addPatch}.
        Reverse this operation using L{restore}.
        N)rrrr
�getattr�setattrrr
r
rr	.szMonkeyPatcher.patchcCs(|jr$|j��\}}}t|||�qdS)zE
        Restore all original values to any patched objects.
        N)r�poprrr
r
r�restore9szMonkeyPatcher.restorecOs&|��z|||�W�S|��XdS)z�
        Apply each patch already specified. Then run the function f with the
        given args and kwargs. Restore everything when done.
        N)r	r)r�f�args�kwr
r
r�runWithPatchesBszMonkeyPatcher.runWithPatchesN)
�__name__�
__module__�__qualname__�__doc__rrrr	rrr
r
r
rr	s

	rN)Z
__future__rr�objectrr
r
r
r�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit