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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python313/Lib/test/test_importlib/__pycache__/util.cpython-313.pyc
�

��ip5���SSKrSSKrSSKrSSKrSSKJrJrJr SSKrSSK	r	SSK
r	SSKJr SSK
Jr SSK
Jr SSK
Jr SSKJr SSKrSSKrSSKrSSKr\R."S5 \R0"5rS\lS\lS	\R8;aS	\lS
\R8;aS
\l\R:(aSrOK\R0"5qS[>l S[>l!S[>l"S[>l#S[>l$S
r\"5 Sr%S)Sjr&S)Sjr'S)Sjr(Sr)\RTS;aH\+RY5r-\-\+:Xa\+R]5r-\	R@R_\-5(dSr)\%"S
5Sr0\1"\Rd5\1"\0Rd5S.r2Sr3S*Sjr4Sr5\RlS5r7\RlS*SS.Sjj5r8\RlS5r9"SS5r:"S S!\:5r;S"r<S#r=\RlS$5r>\RlS%5r?S&r@"S'S(5rAg)+�N)�	machinery�util�invalidate_caches)�support)�
import_helper)�is_apple_mobile)�	os_helper)�ExtraAssertions�_testmultiphase�errno�	importlibc��Sqg�N)�
EXTENSIONS���-C:\Python313\\Lib\test\test_importlib\util.py�_extension_detailsr#s���
r�_testsinglephasec��[RH�n[RH�n[(aURSS5n[RU-n[RRX5n[RRU5(dMxU[lU[lU[lU[l
  g M� g)Nz.soz.fwork)�sys�pathr�EXTENSION_SUFFIXESr�replacer�name�os�join�exists�ext�filename�	file_path)rrr r!s    rrr.s����H�H�D� �3�3��#�?��+�+�e�X�6�C�%�?�?�S�0���G�G�L�L��8�	��7�7�>�>�)�,�,�&*�J�O�%(�J�N�*2�J�'�+4�J�(��4�rc�t�SU;aSOSn[R"U5n[R"XSS9nX#S.$)zAImport a module from importlib both w/ and w/o _frozen_importlib.�.)r
r)�_frozen_importlib�_frozen_importlib_external)�fresh�blocked��Frozen�Source)r�import_fresh_module)�module_namer&�frozen�sources    r�import_importlibr/Cs?��!�[�0�N�b�E�
�
.�
.�{�
;�F�
�
.�
.�{�1d�f�F��/�/rc�t�Uc[RnO[U[5(dX!nSR	XR
5nX[4n[R"XE5nURUl	UR
Ul
XlUR5HupxX�n	[XgU	5 M U$)Nz{}_{})�unittest�TestCase�
isinstance�type�format�__name__r
�types�	new_class�
__module__�_NAME�_KIND�items�setattr)
�cls�kind�base�kwargsr�bases�specialized�attr�values�values
          r�specialize_classrGLs����|�� � ��
��d�
#�
#��z���>�>�$���-�D�
��(�E��/�/�$�.�K� �^�^�K�����K���������������5�)�'��rc�@�[USU40UD6n[USU40UD6nX44$)Nr)r*)rG)r>r@rAr-r.s     r�split_frozenrI_s0��
�c�8�T�
<�V�
<�F�
�c�8�T�
<�V�
<�F��>�rc��[X40UD6$r)rI)�
test_classr@rAs   r�	test_bothrLes���
�3�F�3�3rT)�win32�cygwinFr*r(c�N�[R"[(+S5"U5$)zNClass decorator that nullifies tests requiring a case-insensitive
file system.z&requires a case-insensitive filesystem)r1�skipIf�CASE_INSENSITIVE_FS)�tests r�case_insensitive_testsrSxs)���?�?�2�2�D�F�FJ�L�Lrc���[RRX!S-5n[USSS9nUR	U5 SSS5 SRX5U4$!,(df   N!=f)N�.py�w�utf-8��encodingz{}.{})rrr�open�writer5)�parentr�pkg_dir�contentr�subfiles      r�	submoduler`sT��
�7�7�<�<����.�D�	
�d�C�'�	*�g��
�
�g��
+��>�>�&�'��-�-�
+�	*�s�A�
A)c��[US5nURS5 [R"U5sSSS5 $!,(df   g=f)zfReads a pyc file and returns the unmarshalled code object within.

No header validation is performed.
�rb�N)rZ�seek�marshal�load)�pyc_path�pyc_fs  r�get_code_from_pycri�s3��

�h��	��
�
�
�2���|�|�E�"�
�	�	�s	�'>�
Ac'�h# �UH5nUS;a[SRU55e[RU	M7 Sv� UHn[RU	M g![a Mgf=f![a M8f=f!UH&n[RU	M![a M$f=f f=f7f)z�Uncache a module from sys.modules.

A basic sanity check is performed to prevent uncaching modules that either
cannot/shouldn't be uncached.

)rrezcannot uncache {}N)�
ValueErrorr5r�modules�KeyError)�namesrs  r�uncachero�s�������%�%��0�7�7��=�>�>�	����D�!�	��
��D�
��K�K��%����	��	���
��
���D�
��K�K��%���
��
���s��&B2�A�B2�B�B2�	A0�B2�
A-�)B2�,A-�-B2�0
A>�:B2�=A>�>B2�B/�B�B/�
B)	�%B/�(B)	�)B/�/B2)�pkgc	#��# �[RVs/sHo3RS5SU:XdMUPM  nn[R"S5n[U/UQ76 [R"U5 [5 [RRXP5nU(a7[RRUS5n[R"U5 O
US-nUcSnUb%[USSS9nURU5 SSS5 Uv� SSS5 SSS5 SSS5 gs snf!,(df   N0=f!,(df   N5=f!,(df   N>=f!,(df   g=f7f)	Nr#rz__init__.pyrU�rVrWrX)rrl�	partitionr	�temp_cwdror�
DirsOnSysPathrrrr�mkdirrZr[)	rr^rp�n�	conflicts�cwd�location�modpath�modfiles	         r�temp_moduler}�s����K�K�G�K�q�;�;�s�+;�A�+>�$�+F��K�I�G�	�	�	�D�	!�S�
�T�
&�I�
&��,�,�S�1�!�#��7�7�<�<��2��� �g�g�l�l�8�]�C�G��H�H�T�N�&��.�G���"$���&��g�s�W�=���
�
�g�.�>���!2�'�
"�	!��H�">�=��2�1��'�
&��
"�	!�su�E6�D-�D-�E6�
E%�E�6BE�6D2	�E�E�E%�$E6�2
E
�<E�
E�
E�
E"	�E%�%
E3�/E6c+�# �0nS/4S/4S/4S044H5up#[[U5X'X ;aXnX	OUn[[X$5 M7 [U5(a[	SRU55eSv� UR
5Hup%[[X%5 M g!UR
5Hup%[[X%5 M f=f7f)aContext manager to manage the various importers and stored state in the
sys module.

The 'modules' attribute is not supported as the interpreter state stores a
pointer to the dict that the interpreter uses internally;
reassigning to sys.modules does not have the desired effect.

�	meta_pathr�
path_hooks�path_importer_cachezunrecognized arguments: {}N)�getattrrr=�lenrkr5r<)rA�	originalsrD�default�	new_valuerFs      r�import_stater��s�����I�&�*�B�/�&�"��+�R�0�4�b�9�;�M�D�&�c�4�0�I�O��~�"�L�	��L�#�	��C��)�;��v�;�;��9�@�@��H�I�I�
�$�?�?�,�K�D��C��%�-��9�?�?�,�K�D��C��%�-�s�C�A5B%�;*C�%+C�Cc�8�\rSrSrSr0S.SjrSrSrSrSr	g	)
�
_ImporterMock��z0Base class to help with creating importer mocks.)�module_codec��0Ul0UlUH�nURS5(dUnOUS[S5*nSU;aSnOXC:XaUR	SS5SnOUn[
R"U5nXlSUlXVl	X6l
XC:waS/UlX`RU'XA;dM�XURU'M� g)N�	.__init__r#�rz<mock __file__>z<mock __path__>)rlr��endswithr��rsplitr7�
ModuleType�
__loader__�__file__�__package__rD�__path__)�selfr�rnr�import_name�package�modules       r�__init__�_ImporterMock.__init__�s����������D��=�=��-�-�"��"�#5�S��%5�$5�6���$�����$��+�+�c�1�-�a�0��%���%�%�k�2�F� $��/�F�O�!(���K��"�#4�"5���(.�L�L��%��)�0;�0H�� � ��-�)rc� �URU$r)rl)r�rs  r�__getitem__�_ImporterMock.__getitem__�s���|�|�D�!�!rc��[URR56UlURR	5 U$r)rorl�keys�_uncache�	__enter__)r�s rr��_ImporterMock.__enter__�s0������!2�!2�!4�5��
��
�
���!��rc�>�URRSSS5 gr)r��__exit__)r��exc_infos  rr��_ImporterMock.__exit__s���
�
���t�T�4�0r)r�r�rlN)
r6r9�__qualname__�__firstlineno__�__doc__r�r�r�r��__static_attributes__rrrr�r��s��:�+-�I�2"��
1rr�c�.�\rSrSrSrSSjrSrSrSrg)	�	mock_speciz!Importer mock using PEP 451 APIs.Nc
��URUn[R"XRU[USS5S9nU$![a gf=f)Nr�)�loader�submodule_search_locations)rlrmr�spec_from_file_locationr�r�)r��fullnamerr\r��specs      r�	find_spec�mock_spec.find_specsX��	��\�\�(�+�F��+�+��/�/�$�+2�6�:�t�+L�N������	��	�s�>�
A�
Ac�t�URUR;a[eURUR$r)rrl�ImportError)r�r�s  r�
create_module�mock_spec.create_modules+���9�9�D�L�L�(����|�|�D�I�I�&�&rc�v�URURR"5 g![a gf=fr)r��__spec__rrm)r�r�s  r�exec_module�mock_spec.exec_modules4��	����V�_�_�1�1�2�4���	��	�s�(+�
8�8r)NN)	r6r9r�r�r�r�r�r�r�rrrr�r�s��+��'�
rr�c�^�[R(a[R"S5"T5$[R
"T5U4Sj5nU$)zpDecorator to protect sys.dont_write_bytecode from mutation and to skip
tests that require it to be set to False.zrelies on writing bytecodec�>�[RnS[lT"U0UD6nU[lU$!U[lf=f)NF)r�dont_write_bytecode)�argsrA�original�	to_return�fxns    �r�wrapper�&writes_bytecode_files.<locals>.wrapper'sD����*�*��"'���	/��T�,�V�,�I�&.�C�#����'/�C�#�s	�3�
A)rr�r1�skip�	functools�wraps)r�r�s` r�writes_bytecode_filesr�"sE�������}�}�9�:�3�?�?��_�_�S������Nrc���[R"[RRU55 g![a)nUR
[
R:waeSnAgSnAff=f)z�Ensure that the __pycache__ directory for PEP 3147 pyc file exists.

:param bytecode_path: File system path to PEP 3147 pyc file.
N)rrvr�dirname�OSErrorr�EEXIST)�
bytecode_path�errors  r�ensure_bytecode_pathr�3sH��
�
���������/�0�����;�;�%�,�,�&��'���s�36�
A)�A$�$A)c#�# �[RnU[lSv� U[lg!U[lf=f7f)z&Adjust and restore sys.pycache_prefix.N)r�pycache_prefix)�prefix�_orig_prefixs  r�temporary_pycache_prefixr�?s2����%�%�L��C��*�
�)����\���s�?�/�?�
<�?c'��# �Sn/n0nSnSn[R"5nXcS'[5nUGH[nURS5(dUn	OUS[	S5*n	URU	5 U	[R;a[RU		URS5n
UnU
SSHon[RRX�5n[RRU5(aMH[R"U5 URU5 Mq [RRX�SS-5n[US	S
S9n
U
R!UR#U55 SSS5 URU5 X�U'GM^ [%U6nUR'5 [)U/S9nUR'5 Uv� UbUR+SSS5 UbUR+SSS5 [,R."U5 g!,(df   N�=f!UbUR+SSS5 UbUR+SSS5 [,R."W5 f=f7f)
a*Temporarily create each named module with an attribute (named 'attr')
that contains the name passed into the context manager that caused the
creation of the module.

All files are created in a temporary directory returned by
tempfile.mkdtemp(). This directory is inserted at the beginning of
sys.path. When the context manager exits all created files (source and
bytecode) are explicitly deleted.

No magic is performed when creating packages! This means that if you create
a module within a package you must also create the package's __init__ as
well.

zattr = {0!r}Nz.rootr�r�r#���rUrVrWrX)r)�tempfile�mkdtemp�setr�r��addrrl�splitrrrrrv�appendrZr[r5ror�r�r�r	�rmtree)rnr.�
created_paths�mapping�
state_manager�uncache_manager�temp_dir�import_namesrr��
name_partsr!�	directory�files              r�create_modulesr�Js��� �F��M��G��M��O�"#��#�#�%��#����u���D��=�=��,�,�"��"�#5�S��%5�$5�6�����[�)��c�k�k�)��K�K��,����C��J� �I�'���_�	��G�G�L�L��>�	��w�w�~�~�i�0�0��H�H�Y�'�!�(�(��3�	-�
�����Y�2���0F�G�I��i��w�7�4��
�
�6�=�=��.�/�8�� � ��+�%�D�M�'�("�<�0���!�!�#�$�8�*�5�
����!��
��$��"�"�4��t�4��&��$�$�T�4��6�����"�8�7���$��"�"�4��t�4��&��$�$�T�4��6�����"�s?�I$�C#H�5AH�!H�1AH�	AI$�
H	�H�AI!�!I$c�^^�UU4SjnU$)zA mock sys.path_hooks entry.c� >�UT;a[eT$r)r�)�entry�entries�importers ��r�hook�mock_path_hook.<locals>.hook�s���������rr)r�r�r�s`` r�mock_path_hookr��s�����Krc��\rSrSrSrSrg)�CASEOKTestBasei�c�`^�Sn[U4SjU55U:waTRS5 gg)N)sPYTHONCASEOK�PYTHONCASEOKc3�~># �UH2nUTRRRR;v� M4 g7fr)r
�_bootstrap_external�_os�environ)�.0�xr�s  �r�	<genexpr>�4CASEOKTestBase.caseok_env_changed.<locals>.<genexpr>�s3����,�*���D�N�N�6�6�:�:�B�B�B�*�s�:=z/os.environ changes not reflected in _os.environ)�any�skipTest)r��should_exist�
possibilitiess`  r�caseok_env_changed�!CASEOKTestBase.caseok_env_changed�s7���7�
��,�*�,�,�/;�<��M�M�K�L�<rrN)r6r9r�r�rr�rrrr�r��s��Mrr�r)rr)B�builtins�
contextlibrr�r
rrrrer�os.pathrRr�test.supportrrr	�test.support.testcaser
r1rr�r7�
import_module�SimpleNamespace�BUILTINS�	good_name�bad_name�builtin_module_names�is_wasirrrrr r!rr/rGrIrLrQ�platformr��upper�changed_name�lowerr�source_importlib�staticmethod�
__import__rSr`ri�contextmanagerror}r�r�r�r�r�r�r�r�r�rrr�<module>rsI������8�8��	���&�(�"�1��
���
���-�.�� � �"��������
�c�&�&�&� �H���c�.�.�.�#�H��
�?�?�
��&�&�(�J��J�O��J�N��J���J��(�J�O��$��0��&�4����<�<�*�*��>�>�#�L��x���~�~�'��
�7�7�>�>�,�'�'�#��#�K�0��:��$�X�%8�%8�9�$�%5�%@�%@�A�C�
�L�.�#�������0��������.���&��&�:&1�&1�R�
��4�"	����*��*����6#��6#�r�M�Mr

Youez - 2016 - github.com/yon3zu
LinuXploit