🐐 GOAT Shell

Current path: home/fresvfqn/waterdamagerestorationgerritsenbeach.com/



⬆️ Go up: fresvfqn

πŸ“„ Viewing: SimpleHTTPServer.pyc.tar

lib64/python2.7/SimpleHTTPServer.pyc000064400000017512150533112610013074 0ustar00οΏ½
zfc@sοΏ½dZdZdgZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZyddlm
Z
Wn!ek
rοΏ½ddl
m
Z
nXdejfdοΏ½οΏ½YZeejdοΏ½ZedkrοΏ½eοΏ½ndS(	sοΏ½Simple HTTP Server.

This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.

s0.6tSimpleHTTPRequestHandleriοΏ½οΏ½οΏ½οΏ½N(tStringIOcBsοΏ½eZdZdeZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½ZdοΏ½Z	dοΏ½Z
dοΏ½Zej
skejοΏ½nejjοΏ½Zejid	d
6dd6dd
6dd6οΏ½RS(sWSimple HTTP request handler with GET and HEAD commands.

    This serves files from the current directory and any of its
    subdirectories.  The MIME type for files is determined by
    calling the .guess_type() method.

    The GET and HEAD requests are identical except that the HEAD
    request omits the actual contents of the file.

    sSimpleHTTP/cCs>|jοΏ½}|r:z|j||jοΏ½Wd|jοΏ½XndS(sServe a GET request.N(t	send_headtcopyfiletwfiletclose(tselftf((s(/usr/lib64/python2.7/SimpleHTTPServer.pytdo_GET+s
cCs#|jοΏ½}|r|jοΏ½ndS(sServe a HEAD request.N(RR(RR((s(/usr/lib64/python2.7/SimpleHTTPServer.pytdo_HEAD4sc	CsοΏ½|j|jοΏ½}d}tjj|οΏ½rtj|jοΏ½}|jjdοΏ½sοΏ½|jdοΏ½|d|d|dd|d|df}tj	|οΏ½}|j
d|οΏ½|jοΏ½dSxOdD]7}tjj||οΏ½}tjj
|οΏ½rοΏ½|}PqοΏ½qοΏ½W|j|οΏ½Sn|j|οΏ½}yt|dοΏ½}Wn"tk
rM|jdd
οΏ½dSXyz|jdοΏ½|j
d|οΏ½tj|jοΏ½οΏ½}|j
dt|dοΏ½οΏ½|j
d|j|jοΏ½οΏ½|jοΏ½|SWn|jοΏ½οΏ½nXdS(s{Common code for GET and HEAD commands.

        This sends the response code and MIME headers.

        Return value is either a file object (which has to be copied
        to the outputfile by the caller unless the command was HEAD,
        and must be closed by the caller under all circumstances), or
        None, in which case the caller has nothing further to do.

        t/i-iiiiitLocations
index.htmls	index.htmtrbiοΏ½sFile not foundiοΏ½sContent-typesContent-Lengthis
Last-ModifiedN(s
index.htmls	index.htm(ttranslate_pathtpathtNonetostisdirturlparseturlsplittendswitht
send_responset
urlunsplittsend_headertend_headerstjointexiststlist_directoryt
guess_typetopentIOErrort
send_errortfstattfilenotstrtdate_time_stringtst_mtimeR(	RRRtpartst	new_partstnew_urltindextctypetfs((s(/usr/lib64/python2.7/SimpleHTTPServer.pyR:sF






cCsοΏ½ytj|οΏ½}Wn%tjk
r:|jddοΏ½dSX|jddοΏ½οΏ½tοΏ½}tjt	j
|jοΏ½οΏ½}|jdοΏ½|jd|οΏ½|jd|οΏ½|jdοΏ½xοΏ½|D]οΏ½}tjj
||οΏ½}|}}tjj|οΏ½r|d	}|d	}ntjj|οΏ½r"|d
}n|jdt	j|οΏ½tj|οΏ½fοΏ½qοΏ½W|jdοΏ½|jοΏ½}	|jd
οΏ½|jdοΏ½tjοΏ½}
|jdd|
οΏ½|jdt|	οΏ½οΏ½|jοΏ½|S(sοΏ½Helper to produce a directory listing (absent index.html).

        Return value is either a file object, or None (indicating an
        error).  In either case, the headers are sent, making the
        interface the same as for send_head().

        iοΏ½sNo permission to list directorytkeycSs
|jοΏ½S(N(tlower(ta((s(/usr/lib64/python2.7/SimpleHTTPServer.pyt<lambda>{ts7<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">s/<html>
<title>Directory listing for %s</title>
s)<body>
<h2>Directory listing for %s</h2>
s
<hr>
<ul>
R
t@s<li><a href="%s">%s</a>
s</ul>
<hr>
</body>
</html>
iiοΏ½sContent-typestext/html; charset=%ssContent-LengthN(RtlistdirterrorRRtsortRtcgitescapeturllibtunquoteRtwriteRRtislinktquotettelltseekRtsystgetfilesystemencodingRR"R(RRtlistRtdisplaypathtnametfullnametdisplaynametlinknametlengthtencoding((s(/usr/lib64/python2.7/SimpleHTTPServer.pyRns>	






	$



cCsοΏ½|jddοΏ½d}|jddοΏ½d}|jοΏ½jdοΏ½}tjtj|οΏ½οΏ½}|jdοΏ½}td|οΏ½}t	j
οΏ½}xS|D]K}t	jj|οΏ½sοΏ½|t	j
t	jfkrοΏ½qοΏ½nt	jj||οΏ½}qοΏ½W|rοΏ½|d7}n|S(sοΏ½Translate a /-separated PATH to the local filename syntax.

        Components that mean special things to the local file system
        (e.g. drive or directory names) are ignored.  (XXX They should
        probably be diagnosed.)

        t?iit#R
N(tsplittrstripRt	posixpathtnormpathR6R7tfilterRRtgetcwdRtdirnametcurdirtpardirR(RRttrailing_slashtwordstword((s(/usr/lib64/python2.7/SimpleHTTPServer.pyR
οΏ½s	
*
cCstj||οΏ½dS(sοΏ½Copy all data between two file objects.

        The SOURCE argument is a file object open for reading
        (or anything with a read() method) and the DESTINATION
        argument is a file object open for writing (or
        anything with a write() method).

        The only reason for overriding this would be to change
        the block size or perhaps to replace newlines by CRLF
        -- note however that this the default server uses this
        to copy binary data as well.

        N(tshutiltcopyfileobj(Rtsourcet
outputfile((s(/usr/lib64/python2.7/SimpleHTTPServer.pyRοΏ½scCsdtj|οΏ½\}}||jkr/|j|S|jοΏ½}||jkrU|j|S|jdSdS(sοΏ½Guess the type of a file.

        Argument is a PATH (a filename).

        Return value is a string of the form type/subtype,
        usable for a MIME Content-type header.

        The default implementation looks the file's extension
        up in the table self.extensions_map, using application/octet-stream
        as a default; however it would be permissible (if
        slow) to look inside the data to make a better guess.

        R/N(RKtsplitexttextensions_mapR,(RRtbasetext((s(/usr/lib64/python2.7/SimpleHTTPServer.pyRοΏ½ssapplication/octet-streamR/s
text/plains.pys.cs.h(t__name__t
__module__t__doc__t__version__tserver_versionRR	RRR
RRt	mimetypestinitedtinitt	types_maptcopyRZtupdate(((s(/usr/lib64/python2.7/SimpleHTTPServer.pyRs"
				4	*				
	cCstj||οΏ½dS(N(tBaseHTTPServerttest(tHandlerClasstServerClass((s(/usr/lib64/python2.7/SimpleHTTPServer.pyRiοΏ½st__main__(R_R`t__all__RRKRhR6RR4R=RURbt	cStringIORtImportErrortBaseHTTPRequestHandlerRt
HTTPServerRiR](((s(/usr/lib64/python2.7/SimpleHTTPServer.pyt<module>s(	
οΏ½


πŸ“€ Upload File


πŸ“ Create Folder