403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
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:/Python313/Lib/test/test_importlib/resources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/test_importlib/resources/__pycache__/test_files.cpython-313.opt-1.pyc
�

��i��<�SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJ	r	 SSK
Jr SSKJ
r
 SSKJrJr \R"S5r"SS	5r"S
S\\
R(\R*5r"SS
\\
R.\R*5r"SS\\
R(\R*5r"SS\\
R.\R*5r"SS5r"SS5r"SS\\
R(\\R*5r"SS\\
R.\\R*5r"SS5r"SS\\
R(\\R*5r "SS\\
R.\\R*5r!\"S :Xa\RF"5 gg)!�N)�	resources)�Traversable�)�util)�	os_helper�
import_helperc#�# �[R"SS9n[R"S[S9 Uv� SSS5 g!,(df   g=f7f)NT)�record�default)�category)�warnings�catch_warnings�simplefilter�DeprecationWarning)�ctxs �=C:\Python313\\Lib\test\test_importlib\resources\test_files.py�suppress_known_deprecationrs6���	�	 �	 ��	-�����i�2D�E��	�
.�	-�	-�s�A�>�	A�
A�Ac�2�\rSrSrSrSrSrSrSrSr	g)	�
FilesTests�c��[R"UR5nURS5R	5ng)N�
utf-8.file)r�files�data�joinpath�
read_bytes��selfr�actuals   r�test_read_bytes�FilesTests.test_read_bytess+������	�	�*������-�8�8�:��c��[R"UR5nURS5R	SS9ng)Nr�utf-8��encoding)rrrr�	read_textrs   r�test_read_text�FilesTests.test_read_texts0������	�	�*������-�7�7��7�I�r"c��g�N��rs r�test_traversable�FilesTests.test_traversable#��r"c��[R"UR5nURSS5nUR	UR55 g)N�subdirectoryzbinary.file)rrrr�
assertTrue�is_file)rr�binfiles   r� test_joinpath_with_multiple_args�+FilesTests.test_joinpath_with_multiple_args&s7������	�	�*���.�.���?��������)�*r"c��[5 [R"URS9 SSS5 g!,(df   g=f)z`
Files used to take a 'package' parameter. Make sure anyone
passing by name is still supported.
)�packageN)rrrrr-s r�test_old_parameter�FilesTests.test_old_parameter+s&��
(�
)��O�O�D�I�I�.�*�
)�
)�s	�3�
Ar,N)
�__name__�
__module__�__qualname__�__firstlineno__r r(r.r6r:�__static_attributes__r,r"rrrs��2�
1�
C�+�
/r"rc��\rSrSrSrg)�
OpenDiskTests�4r,N�r<r=r>r?r@r,r"rrBrB4���r"rBc��\rSrSrSrg)�OpenZipTests�8r,NrDr,r"rrGrG8rEr"rGc��\rSrSrSrSrSrg)�OpenNamespaceTests�<�namespacedata01c�n�SSKnURRS5 [R"U5 g)a�
Non-path items in a namespace package's ``__path__`` are ignored.

As reported in python/importlib_resources#311, some tools
like Setuptools, when creating editable packages, will inject
non-paths into a namespace package's ``__path__``, a
sentinel like
``__editable__.sample_namespace-1.0.finder.__path_hook__``
to cause the ``PathEntryFinder`` to be called when searching
for packages. In that case, resources should still be loadable.
rNz6__editable__.sample_namespace-1.0.finder.__path_hook__)rL�__path__�appendrr)rrLs  r�test_non_paths_in_dunder_path�0OpenNamespaceTests.test_non_paths_in_dunder_path?s,��	�� � �'�'�D�	
�	����(r"r,N)r<r=r>r?�MODULErPr@r,r"rrJrJ<s��
�F�)r"rJc��\rSrSrSrSrg)�OpenNamespaceZipTests�TrLr,N)r<r=r>r?�
ZIP_MODULEr@r,r"rrTrTTs��"�Jr"rTc�"�\rSrSrSrSrSrSrg)�
DirectSpec�XzA
Override behavior of ModuleSetup to write a full spec directly.
�unusedc�:�URUR5 gr+)�tree_on_path�spec)r�names  r�load_fixture�DirectSpec.load_fixture_s�����$�)�)�$r"r,N)r<r=r>r?�__doc__rRr_r@r,r"rrXrXXs����F�%r"rXc�$�\rSrSrSSS.rSrSrg)�ModulesFiles�c��resources are the best)zmod.py�res.txtc�p�SSKn[R"U5RS5R	SS9ng)z;
A module can have resources found adjacent to the module.
rNrgr$r%)�modrrrr')rrirs   r�test_module_resources�"ModulesFiles.test_module_resourcesis.��	�����%�.�.�y�9�C�C�W�C�U�r"r,N)r<r=r>r?r]rjr@r,r"rrcrccs���+��D�
.r"rcc��\rSrSrSrg)�ModuleFilesDiskTests�sr,NrDr,r"rrmrmsrEr"rmc��\rSrSrSrg)�ModuleFilesZipTests�wr,NrDr,r"rrprpwrEr"rpc��\rSrSr\R
"S\RS35r\\SS.\R\RS5SS.S.r	S	r
S
rSrSr
S
rg)�ImplicitContextFiles�{z
        import zZ as res
        val = res.files().joinpath('res.txt').read_text(encoding='utf-8')
        rf)�__init__.pyz	submod.pyrg�c_resources)rurg)�somepkg�	frozenpkgc��g�zG
Without any parameter, files() will infer the location as the caller.
Nr,r-s r�test_implicit_files_package�0ImplicitContextFiles.test_implicit_files_package�r0r"c��grzr,r-s r�test_implicit_files_submodule�2ImplicitContextFiles.test_implicit_files_submodule�r0r"c��URR[R"55n[R
"US5n[R
"[R5RnURS5HHnURURU55RS5n[R"XE5 MJ URR[R "U55 g)z�
Make a compiled-only copy of the importlib resources package.

Currently only code is copied, as importlib resources doesn't itself
have any resources.
rvz**/*.pyz.pycN)�fixtures�
enter_contextr�temp_dir�pathlib�Pathr�__file__�parent�globr�relative_to�with_suffix�
py_compile�compiler�
DirsOnSysPath)r�bin_siterv�sources�source_path�c_paths      r�_compile_importlib�'ImplicitContextFiles._compile_importlib�s����=�=�.�.�y�/A�/A�/C�D���l�l�8�]�;���,�,�y�1�1�2�9�9��"�<�<�	�2�K� �)�)�+�*A�*A�'�*J�K�W�W�X^�_�F����{�3�3�	
�
�
�#�#�M�$?�$?��$I�Jr"c�$�UR5 g)zS
Caller detection works for compiled-only resources module.

python/cpython#123085
N)r�r-s r�+test_implicit_files_with_compiled_importlib�@ImplicitContextFiles.test_implicit_files_with_compiled_importlib�s��	
���!r"r,N)r<r=r>r?�textwrap�dedentr�set_val�replacer]r{r~r�r�r@r,r"rrsrs{sx���o�o�
��"�"�#�$	�	��G�#� �/�
�#�?�?�9�+=�+=�}�M�/�
�
�D�R�Y�K� Tr"rsc��\rSrSrSrg)�ImplicitContextFilesDiskTests�r,NrDr,r"rr�r�����	r"r�c��\rSrSrSrg)�ImplicitContextFilesZipTests�r,NrDr,r"rr�r��r�r"r��__main__)$�osr�r��shutilr��unittestr
�	importlib�
contextlibr�importlib.resources.abcrrer�test.supportrr�contextmanagerrr�	DiskSetup�TestCaserB�ZipSetuprGrJrTrXrcrmrprsr�r�r<�mainr,r"r�<module>r�se��	���
�������/��1�������/�/�8	�J�����0A�0A�	�	�:�t�}�}�h�.?�.?�	�)��T�^�^�X�5F�5F�)�0#�J��
�
�x�7H�7H�#�%�%�
.�
.� 	�:�t�~�~�|�X�EV�EV�	�	�*�d�m�m�\�8�CT�CT�	�6T�6T�r	����� 4�h�6G�6G�	�	���
�
�3�X�5F�5F�	��z���M�M�O�r"

Youez - 2016 - github.com/yon3zu
LinuXploit