-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
làÁ\c@s‘ddlZddlZddlZddlZddlmZmZddlmZdZ	dZ
dejfd„ƒYZd„Z
d	„ZdS(
iÿÿÿÿN(tutilt	wireproto(tHTTP_OKsapplication/mercurial-0.1sapplication/hg-errortwebprotocBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCs+||_d|_||_|j|_dS(Nt(treqtresponsetuit	checkperm(tselfRR((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pyt__init__s			cCs¿|jƒ}i}|jƒ}xƒ|D]{}|dkrŽi}xA|jƒD]3}|dkrJ||krJ||d||<qJqJW||d<q%||d||<q%Wg|D]}||^q«S(Nt*tcmdi(t_argstsplittkeys(R	targst	knownargstdataRtktstartkey((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pytgetargss

cCsš|jjjƒ}g}d}xPtrp|jjjdt|ƒƒ}|dkrVPn||g7}|d7}q!W|jt	j
dj|ƒdtƒƒ|S(Nit
HTTP_X_HGARG_Rtkeep_blank_values(RtformtcopytTruetenvtgettstrtNonetupdatetcgitparse_qstjoin(R	Rtchunkstith((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pyR
#s	
%cCsJt|jjdƒ}x-tj|jd|ƒD]}|j|ƒq/WdS(NtCONTENT_LENGTHtlimit(tintRRRt
filechunkitertwrite(R	tfptlengthts((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pytgetfile/scCs;|jj|jjf|_tjƒ|j_|j_dS(N(Rtfouttferrtoldiot	cStringIOtStringIO(R	((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pytredirect3scCs1|jjjƒ}|j\|j_|j_|S(N(RR0tgetvalueR2R1(R	tval((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pytrestore6sccsOtjƒ}x1tr?|jdƒ}|s.Pn|j|ƒVqW|jƒVdS(Ni(tzlibtcompressobjRtreadtcompresstflush(R	tcgtztchunk((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pytgroupchunks:s	cCs\d|jjjdƒpdtj|jjjddƒƒtj|jjjddƒƒfS(Nsremote:%s:%s:%sswsgi.url_schemethttptREMOTE_HOSTRtREMOTE_USER(RRRturllibtquote(R	((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pyt_clientBs(
t__name__t
__module__R
RR
R/R5R8RARG(((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pyRs							cCs
|tjkS(N(Rtcommands(R((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pytiscmdHscCsJt||jƒ}tj|||ƒ}t|tƒrP|jttd|ƒgSt|tj	ƒry|jttƒ|j
St|tjƒrÄ|jƒ}d|j
|f}|jttd|ƒgSt|tjƒr|jƒ|jƒd|j
}|jttd|ƒgSt|tjƒrF|j}|jttd|ƒgSdS(Ntbodys%d
%ss0
%s
(RRRtdispatcht
isinstanceRtrespondRtHGTYPEt	streamrestgentpushresR8trestpusherrtdraintooberrortmessaget	HGERRTYPE(trepoRRtptrspR7((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pytcallKs.


	(R!R3R9REt	mercurialRRtcommonRRPRYtabstractserverprotoRRKR](((s</usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.pyt<module>s09	

Copyright © 2017 || Recoded By Mr.Bumblebee