-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/hgweb/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyc

ó
Ě\,Tc@sddlZddlZddlZddlmZddlmZmZmZiddgfd!gd6ddgfd"gd	6dd
gfd#gd6dd
gfd$gd6ddgfd%gd6ddgfd&gd6ddgfd'gd6ddgfd(gd6ddgfd)gd6ddgfgd6dd
gfddgfgd6ddgfd*gd6Z
d„Zdefd„ƒYZ
d „ZdS(+i˙˙˙˙N(tutil(t
ErrorResponset
statusmessagetHTTP_NOT_MODIFIEDtcmdt	changelogtrevtcltshortlogtslt	changesettnodetcstfiletfilenodetftfilelogtfltfiledifftfdtannotatetfatmanifesttmftarchivetcattagsttiptstaticcCsŻxhtjƒD]Z}||kr
x;t|D]/\}}|dkrO||}n|||<q*W||=q
q
Wx=|jƒD]/\}}g|D]}|jƒ^q‹||<qxW|S(N(t	shortcutstiterkeystNonet	iteritemststrip(tformtktnametvaluetvti((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyt	normalizes
'twsgirequestcBsbeZd„Zd„Zdd„Zd„Zd
d
d„Zd„Zd„Z	d„Z
d	„ZRS(cCsĹ|d}|dks"|d
kr5td|ƒ‚n|d|_|d|_|d|_|d	|_|d
|_||_ttj	|j|jddƒƒ|_
||_d|_
g|_dS(Nswsgi.versioniiis*Unknown and unsupported WSGI version %d.%ds
wsgi.inputswsgi.errorsswsgi.multithreadswsgi.multiprocesss
wsgi.run_oncetkeep_blank_values(ii(ii(tRuntimeErrortinpterrtthreadedtmultiprocesstrun_oncetenvR(tcgitparseR"t_start_responseRtserver_writetheaders(tselftwsgienvtstart_responsetversion((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyt__init__+s 






				cCs
tgƒS(N(titer(R7((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyt__iter__=si˙˙˙˙cCs|jj|ƒS(N(R,tread(R7tcount((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyR>@scCsEt|jjdƒpdƒ}x tj|jd|ƒD]}q7WdS(s:need to read all data from request, httplib is half-duplextCONTENT_LENGTHitlimitN(tintR1tgetRt
filechunkiterR,(R7tlengthts((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pytdrainCscCsď|jdk	rĆ|jjd|fƒ|rs|jdƒdjddƒjddƒ}|jjdd	|fƒn|dk	r¤|jjd
tt|ƒƒfƒnx<|jD]1\}}t|tƒsŽt	d|fƒ‚qŽqŽWt|t
ƒrf|jj|jƒ|jt
krNg|jD]$\}}|dkr||f^q|_nt|j|jƒ}n3|dkr{d}nt|tƒr™t|ƒ}n|j||jƒ|_d|_g|_n|dk	rë|j|ƒd|_ndS(NsContent-Typet/i˙˙˙˙s\s\\t"s\"sContent-Dispositionsinline; filename="%s"sContent-Lengthsheader value must be string: %rtDatetETagtExpiress
Cache-ControltVaryiČs200 Script output follows(RJRKRLs
Cache-ControlRM(R4RR6tappendtsplittreplacetstrtlent
isinstancet	TypeErrorRtextendtcodeRRtmessageRBR5twrite(R7tstatusttypetfilenametbodyR#R&((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pytrespondIs:%!		
cCsP|rLy|j|ƒWqLtjk
rH}|dtjkrI‚qIqLXndS(Ni(R5tsocketterrorterrnot
ECONNRESET(R7tthingtinst((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyRXnscCs"x|D]}|j|ƒqWdS(N(RX(R7tlinestline((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyt
writelinesvs
cCsdS(N(R(R7((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pytflushzscCsdS(N(R(R7((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pytclose}sN(t__name__t
__module__R;R=R>RGRR]RXRfRgRh(((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyR)*s			%			cs|ƒ‰‡fd†}|S(s{For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
    can and should now be used as a WSGI application.cs
ˆ||ƒS(N((R1R](tapplication(s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pytrun_wsgi„s((t	app_makerRl((Rks;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pytwsgiapplication€s	(RN(RN(RN(RN(RN(RN(RN(RN(RN(sfileN(R^R2R`t	mercurialRtcommonRRRRRR(tobjectR)Rn(((s;/usr/lib/python2.7/dist-packages/mercurial/hgweb/request.pyt<module>	s$$	V

Copyright © 2017 || Recoded By Mr.Bumblebee