403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  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-314.pyc
+
�h]	���Rt^RIt^RIt^RIt^RIt^RIt^RIt!RR]PP4t!RR]PP4t
!RR]PP]P4tR	RltR#)
z>Basic http server for tests to simulate PyPI or custom indexesNc�la�]tRt^toRtR]PP3RltRt	Rt
RtRtVt
R#)	�IndexServera9Basic 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()
c�h�\PPPWV4RVnR#�TN)�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��\P!VPR7VnVPP	4R#))�targetN)�	threading�Thread�
serve_forever�thread�start�rs&rr�IndexServer.starts*���&�&�d�.@�.@�A��������rc��\P!R4VP4VPP	4VP
P
4R#)zStop the serverg�������?N)�time�sleep�shutdownr�join�socket�closers&r�stop�IndexServer.stop#s8��	
�
�
�3���
�
�������������rc�&�VPpRVR2#)zhttp://127.0.0.1:z/setuptools/tests/indexes/��server_port)r�ports& r�base_url�IndexServer.base_url-s������"�4�&�(B�C�Cr)r
rN���)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr�SimpleHTTPRequestHandlerr	rr"r(�__static_attributes__�__classdictcell__��
__classdict__s@rrrs7����	�� �K�K�@�@����D�Drrc�&a�]tRt^2toRtRtVtR#)�RequestRecorderc��\VP4PR.4pVPV4VP	^�R4R#)�requests�OKN)�varsr�
setdefault�append�
send_response)rr:s& r�do_GET�RequestRecorder.do_GET3s9������$�/�/�
�B�?����������3��%r�N)r-r.r/r0r@r3r4r5s@rr8r82s����&�&rr8c�Xa�]tRt^9toRtR]3RltRt]R4t	]R4t
RtVtR#)	�
MockServerz<
A simple HTTP Server that records the requests made to it.
c��\PPPWV4\P
PV4RVn.VnR#r)rrrr	rr�daemonr:rs&&&rr	�MockServer.__init__>s?�������'�'��>Q�R����!�!�$�'������
rc�&�VP4R#�N)rrs&r�run�MockServer.runDs�����rc� �RVP2#)z
localhost:r%rs&r�netloc�MockServer.netlocGs���D�,�,�-�.�.rc�"�RVPR2#)zhttp://�/)rMrs&r�url�MockServer.urlKs������
�Q�'�'r)rFr:Nr*)
r-r.r/r0r1r8r	rJ�propertyrMrQr3r4r5s@rrDrD9sC�����'.�?����/��/��(��(rrDc� �\PP\PPV44pRpVeVRV,,
p\P
P
V\PPV44#)zConvert a path to a file: URL.zfile:z//)	�os�path�normpath�abspath�urllib�parse�urljoin�request�pathname2url)rV�	authority�bases&& r�path_to_urlr`Psc��
�7�7���B�G�G�O�O�D�1�2�D��D�����y� � ���<�<����f�n�n�&A�&A�$�&G�H�HrrI)r1�http.serverrrUrr�urllib.parserY�urllib.requestrrr�BaseHTTPRequestHandlerr8rrDr`rBrr�<module>resm��D��	�����$D�$�+�+�(�(�$D�N&�d�k�k�8�8�&�(����'�'��)9�)9�(�.Ir

Youez - 2016 - github.com/yon3zu
LinuXploit