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:/Python315/Lib/test/test_importlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_importlib/__pycache__/util.cpython-315.pyc
R
>lqj6c��]PHs]PHs]PHs]PHs]QHGsGsGs]PH s]PH$s	]PH(s	]QH,Gs]QH4Gs]QH4Gs]QH4Gs]PHDs]PHHs]PHLs]PHPs\O*Q2\O,2sP\mP\mQ\O47cQ\mQ\O47cQ\m\O6%cQ	sLK\O,2rP[:mP[:mP[:m P[:m!Q
[:m"Qs\2Qs#Q$Q
ks$Q$Qks%Q$Qks&P	s'\OPQ%7cK\)OU2s+\+\)6Xc\)OY2s+\	O<O[\+2%fP
s'\#Q2Q*s.Q\/\O`2Q\/\.O`2-s0Qs1Q&Qks2Qs3\OhQ2s5\OhQ&QP
-Qkk2s6\OhQ2s7QQ2s8QQ\82s9Qs:Qs;\OhQ2s<\OhQ 2s=Q!s>Q"Q#2s?P!)'�)�	machinery�util�invalidate_caches)�support)�
import_helper)�is_apple_mobile)�	os_helper�_testmultiphase�errno�	importlibc��PrP!�N)�
EXTENSIONS���-C:\Python315\\Lib\test\test_importlib\util.py�_extension_detailsr#s���
r�_testsinglephasec��[OFD�o[OFD�o[%cUOQQ2o[OU*o[OOV2o[OOU2%fJ~U[mU[mU[mU[m
P!	J�	P!)z.soz.fwork)�sys�pathr�EXTENSION_SUFFIXESr�replacer�name�os�join�exists�ext�filename�	file_path)rrrrs    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��QU7cQLQo[OU2o[OVQQ5oQUQU-!)zAImport a module from importlib both w/ and w/o _frozen_importlib.�.)�fresh�blocked�Frozen�Source)rr)�_frozen_importlib�_frozen_importlib_external)r�import_fresh_module)�module_namer"�frozen�sources&   r�import_importlibr,CsE��!�[�0�N�b�E�
�
.�
.�{�
;�F�
�
.�
.�{�1d�f�F��f�h��/�/rc��Ue[OoL[U[2%f	V!*oQO	VO
2oV1o[OVE2oUOUmUO
Um	Vm
UO2FDvqxV�*o	[VgU	2J	U!)Nz{}_{})
�unittest�TestCase�
isinstance�type�format�__name__�types�	new_class�
__module__�_NAME�_KIND�items�setattr)
�cls�kind�base�kwargsr�bases�specialized�attr�values�values
&&&,      r�specialize_classrDLs����|�� � ��
��d�
#�
#��z���>�>�$���-�D�
�K�E��/�/�$�.�K� �^�^�K�����K���������������5�)�'��rc�F�[UQU1-U@o[UQU1-U@oV41!)r$r%)rD)r;r=r>r*r+s&&,  r�split_frozenrF_s0��
�c�8�T�
<�V�
<�F�
�c�8�T�
<�V�
<�F��>�rc��[V1-U@!r
)rF)�
test_classr=r>s&&,r�	test_bothrIes���
�3�F�3�3rr%r$c�P�[O[%(Q2U2!)zNClass decorator that nullifies tests requiring a case-insensitive
file system.z&requires a case-insensitive filesystem)r.�skipIf�CASE_INSENSITIVE_FS)�tests&r�case_insensitive_testsrNxs)���?�?�2�2�D�F�FJ�L�Lrc��[OOV!Q*2o[UQQQ59^tt^2oUO	U2PPP2QOV2U1!)%fhK#9h)�.py�w�utf-8��encodingz{}.{})rrr�open�writer2)�parentr�pkg_dir�contentr�subfiles&&&&  r�	submoduler[sW��
�7�7�<�<����.�D�	
�d�C�'�	*�	*�g��
�
�g��
+��>�>�&�'��-�-�
+�	*�s�A+�+A;	�4A;	c��[UQ29^tt^2oUO]2[OU2ttPPP2!)%fhP!9h)zfReads a pyc file and returns the unmarshalled code object within.

No header validation is performed.
�rb)rU�seek�marshal�load)�pyc_path�pyc_fs& r�get_code_from_pycrc�s9��

�h��	�	��
�
�
�2���|�|�E�"�
�	�	�	�s�'A�A	�A	c'�| �SFD6oUQ7c[QOU22g[OUJ8	Pw�SFDo[OUJ	P![cJlh9h[cJ;h9hSFD'o[OSJ[cJ%h9h	h9h3h)z�Uncache a module from sys.modules.

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

zcannot uncache {})rr_)�
ValueErrorr2r�modules�KeyError)�namesrs* r�uncacheri�s�������%�%��0�7�7��=�>�>�	����D�!�	��
��D�
��K�K��%����	��	���
��
���D�
��K�K��%���
��
���s��B<�B<�A%�B<�B	�B<�A7�B<�%	A4�/A4�0B<�3A4�4B<�7	B�B�B<�B�B<�	B9�B$�"B9�$	B3�.B3�/B9�2B3�3B9�9B<�pkgc
#�j �[OTt,tFD#p3OQ2]*U6XfJ!UMJ%	oo[OP29^tt^2o[U,UN39^tt^2[OU29^tt^2[2[OOVP2oU%c8[OOUQ2o[OU2LUQ*oUePoUd1[UQQQ59^tt^2oUOU2PPP2Uw�PPP2PPP2PPP2P!ttoh)%fhK49h)%fhK:9h)%fhKE9h)%fhP!9h3h)r!z__init__.pyrPrQrRrS)rrf�	partitionr�temp_cwdrir�
DirsOnSysPathrrrr�mkdirrUrV)	rrYrj�n�	conflicts�cwd�location�modpath�modfiles	&&$      r�temp_modulerv�s����K�K�G�K�q�;�;�s�+;�A�+>�$�+F���K�I�G�	�	�	�D�	!�	!�S�
�T�
&�I�
&�
&��,�,�S�1�1�!�#��7�7�<�<��2��� �g�g�l�l�8�]�C�G��H�H�T�N�&��.�G���"$���&��g�s�W�=�=���
�
�g�.�>���!2�'�
"�	!��H�">�=��2�1��'�
&��
"�	!�	!�s��F3� E!�E!� F3� F�7F	�1E9
�AE9
�E9
�E9
�(E&�:
E9
�F	�F�F3�&E6�/E6�1E9
�9F	�F	�F	�F
�F
�F�F0	�(F0	�*	F3c	+�� �-oQ,1Q,1Q,1Q-11FD:vq#[[U2V$V 7cV*oVLSo[[V$2J<	[U2%c[	QOU22gPw�UO
2FDvq%[[V%2J	P!SO
2FDvq%[[X%2J	h9h3h)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: {})�getattrrr:�lenrer2r9)r>�	originalsrA�default�	new_valuerCs,     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�+B0�1B0�%B0�,C�0,C�Cc�F`�\sQs]�snQsQ--QksQsQsQsQs	Us
P!)�
_ImporterMockz0Base class to help with creating importer mocks.�module_codec��-Um-UmSFD�oUOQ2%fSoLUP[Q2'oQU7cPoL"VC6XcUO	Q]2]*oLSo[
OU2oVmQUmVVm	V6m
VC6wc	Q,UmV`OU$VA7fJ�V*UOU$J�	P!)�	.__init__r!z<mock __file__>z<mock __path__>)rfr��endswithr|�rsplitr4�
ModuleType�
__loader__�__file__�__package__rA�__path__)�selfr�rhr�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�*�UOU*!r
)rf)r�rs&&r�__getitem__�_ImporterMock.__getitem__�s���|�|�D�!�!rc��[UOO2UmUOO	2U!r
)rirf�keys�_uncache�	__enter__)r�s&rr��_ImporterMock.__enter__�s0������!2�!2�!4�5��
��
�
���!��rc�B�UOOPPP2P!r
)r��__exit__)r��exc_infos&*rr��_ImporterMock.__exit__s���
�
���t�T�4�0r)r�r�rf)r3r6�__qualname__�__firstlineno__�__doc__r�r�r�r��__static_attributes__�__classdictcell__��
__classdict__s@rr�r��s*����:�I�2�I�2"��
1�1rr�c�<`�\sQsQsnQsQQksQsQsQsUs	P!)�	mock_spec�z!Importer mock using PEP 451 APIs.c
��UOU*o[OVOU[UQP2Q5oU![cP!h9h)Nr�)�loader�submodule_search_locations)rfrgr�spec_from_file_locationr�r{)r��fullnamerrWr��specs&&&&  r�	find_spec�mock_spec.find_specsX��	��\�\�(�+�F��+�+��/�/�$�+2�6�:�t�+L�N������	��	�s�A�	A�A�Ac��UOUO7c[gUOUO*!r
)rrf�ImportError)r�r�s&&r�
create_module�mock_spec.create_modules+���9�9�D�L�L�(����|�|�D�I�I�&�&rc��UOUOO*2P![cP!h9hr
)r��__spec__rrg)r�r�s&&r�exec_module�mock_spec.exec_modules4��	����V�_�_�1�1�2�4���	��	�s�,1�	A�A�Ar)NN)
r3r6r�r�r�r�r�r�r�r�r�s@rr�r�s����+��'�
�rr�c�`�[O%c[OQ2R2![OO
e[OQ2R2![OR2U1Qk2oU!)zpDecorator to protect sys.dont_write_bytecode from mutation and to skip
tests that require it to be set to False.zrelies on writing bytecodez4requires sys.implementation.cache_tag to not be Nonec�:�[OoP
[mRU-U@oU[mU!S[mh9h)F)r�dont_write_bytecode)�argsr>�original�	to_return�fxns*,  �r�wrapper�&writes_bytecode_files.<locals>.wrapper*sD����*�*��"'���	/��T�,�V�,�I�&.�C�#����'/�C�#�s	�	5�
A)rr�r.�skip�implementation�	cache_tag�	functools�wraps)r�r�sf r�writes_bytecode_filesr�"sp��������}�}�9�:�3�?�?�
���#�#�+��}�}�S�T�UX�Y�Y��_�_�S������Nrc���[O[OOU22P![c,oSO
[
O6wcgPo=P!Po=hh9h)z�Ensure that the __pycache__ directory for PEP 3147 pyc file exists.

:param bytecode_path: File system path to PEP 3147 pyc file.
)rror�dirname�OSErrorr
�EEXIST)�
bytecode_path�errors& r�ensure_bytecode_pathr�6sH��
�
���������/�0�����;�;�%�,�,�&��'���s!�38�	A.�A.�A)�"A)�)A.c#� �[OoU[mPw�U[mP!S[mh9h3h)z&Adjust and restore sys.pycache_prefix.)r�pycache_prefix)�prefix�_orig_prefixs& r�temporary_pycache_prefixr�Bs2����%�%�L��C��*�
�)����\���s�A�2�
A�
?�Ac	'� �Qo,o-oPoPo[O2oVcQ$[2oSFCDroUOQ2%fSo	LUP[	Q2'o	UOU	2U	[O7c[OU	UOQ2o
SoU
PPFDpo[OOV�2o[OOU2%cJI[OU2UOU2Jr	[OOV�P*Q*2o[UQQQ	59^tt^2o
U
O!UO#U22PPP2UOU2V�U$CJu	[%UoUO'2[)U,Q
5oUO'2Uw�UdUO+PPP2UdUO+PPP2[,O.U2P!)%fhK�9hSdSO+PPP2SdSO+PPP2[,O.W2h9h3h)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}z.rootr�r�r!rPrQrRrS)r)�tempfile�mkdtemp�setr�r|�addrrf�splitrrrrro�appendrUrVr2rir�r�r�r�rmtree)rhr+�
created_paths�mapping�
state_manager�uncache_manager�temp_dir�import_namesrr��
name_partsr�	directory�files*             r�create_modulesr�Ms��� �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�7�4��
�
�6�=�=��.�/�8�� � ��+�%�D�M�'�("�<�0���!�!�#�$�8�*�5�
����!��
��$��"�"�4��t�4��&��$�$�T�4��6�����"�8�7���$��"�"�4��t�4��&��$�$�T�4��6�����"�sh�J
�AI�7I�A.I�;A.I�)!H.	�
AI�(J
�,J
�+J
�.H>
�7H>
�9I�J�J�*J�J
c�``�UU1QkoU!)zA mock sys.path_hooks entry.c�$:�UR7c[gR!r
)r�)�entry�entries�importers&��r�hook�mock_path_hook.<locals>.hook�s���������rr)r�r�r�sdj r�mock_path_hookr��s�����Krc�(`�\sQsQsnQsQsUsP!)�CASEOKTestBase�c�`�Qo[9PIcU1QkU2D%fJP	L	P
LU1QkU22U6wcROQ2P!P!)�PYTHONCASEOKc3�:�SF �D3oUROOOO7w�	J5	P!3hr
)r�_bootstrap_external�_os�environ)�.0�xr�s& �r�	<genexpr>�4CASEOKTestBase.caseok_env_changed.<locals>.<genexpr>�s1��*���*���D�N�N�6�6�:�:�B�B�B�*�s�;Az/os.environ changes not reflected in _os.environ)r��PYTHONCASEOK)�any�skipTest)r��should_exist�
possibilitiessf$ r�caseok_env_changed�!CASEOKTestBase.caseok_env_changed�sL���7�
��3�,�*�,�3�3�3�,�*�,�,�/;�<��M�M�K�L�<rr)r3r6r�r�rr�r�r�s@rr�r��s����M�Mrr�r
)�win32�cygwin)�)@�builtins�
contextlibr
r�rrrrr_r�os.pathrMr�test.supportrrrr.rr�r4�
import_module�SimpleNamespace�BUILTINS�	good_name�bad_name�builtin_module_names�is_wasirrrrrrrr,rDrFrIrL�platformr��upper�changed_name�lowerr�source_importlib�staticmethod�
__import__rNr[rc�contextmanagerrirvr�r�r�r�r�r�r�r�r�rrr�<module>rsN������8�8��	���&�(�"��
������-�.�� � �"��������
�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