403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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/resources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

���g����ddlZddlZddlZddlmZddlmZddlmZm	Z	ddl
mZGd�d�ZGd	�d
e�Z
Gd�dej�Zy)
�N)�	os_helper)�	resources)�TraversableResources�ResourceReader�)�utilc�"�eZdZdZdefd�Zd�Zy)�SimpleLoaderzA
    A simple loader that only implements a resource reader.
    �readerc��||_y�N�r)�selfrs  �>C:\Python312\\Lib\test\test_importlib\resources\test_custom.py�__init__zSimpleLoader.__init__s	�����c��|jSr
r)r�packages  r�get_resource_readerz SimpleLoader.get_resource_readers���{�{�rN)�__name__�
__module__�__qualname__�__doc__rrr�rrr
r
s����~��rr
c�6�eZdZdZdej
fd�Zd�Zy)�MagicResourcesz2
    Magically returns the resources at path.
    �pathc��||_yr
�r)rrs  rrzMagicResources.__init__s	����	rc��|jSr
r�rs r�fileszMagicResources.files s���y�y�rN)rrrr�pathlib�Pathrr"rrrrrs����W�\�\��rrc��eZdZd�Zd�Zy)�CustomTraversableResourcesTestsc��tj�|_|j|jj�yr
)�
contextlib�	ExitStack�fixtures�
addCleanup�closer!s r�setUpz%CustomTraversableResourcesTests.setUp%s(��"�,�,�.��
�����
�
�+�+�,rc���|jjtj��}t	t|��}t
j|�}tj|�}||usJ�yr
)
r*�
enter_contextr�temp_dirr
rr�create_package_from_loaderrr")rr0�loader�pkgr"s     r�test_custom_loaderz2CustomTraversableResourcesTests.test_custom_loader)sZ���=�=�.�.�y�/A�/A�/C�D���n�X�6�7���-�-�f�5������$���� � � rN)rrrr-r4rrrr&r&$s��-�!rr&)�unittestr(r#�test.supportr�	importlibr�importlib.resources.abcrr�rr
r�TestCaser&rrr�<module>r;sC�����"��H��	�	�	�)�	�
!�h�&7�&7�
!r

Youez - 2016 - github.com/yon3zu
LinuXploit