-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc@sddlmZddlmZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZd„Zdejfd„ƒYZdefd„ƒYZd	„ZdS(
iÿÿÿÿ(tnullid(t_NccsŒtjƒ}yEx>tj|ƒD]-}x$|rK|j|dƒV|j}q(WqWWn)tjk
r|tdt
dƒƒ‚nX|jƒVdS(Niisconnection ended unexpectedlyi(tzlibt
decompressobjtutilt
filechunkitert
decompresstunconsumed_tailthttplibt
HTTPExceptiontIOErrortNoneRtflush(tftzdtchunk((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt
zgenerators	thttppeercBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(cCs»||_d|_d|_d|_tj|ƒ}|jsE|jrmtj	t
dƒ|jpc|jƒ‚n|jƒ\|_}||_
|j
jd|jƒtj||ƒ|_dS(Nsunsupported URL component: "%s"s	using %s
(tpathRtcapsthandlert	urlopenerRturltquerytfragmenttAbortRtauthinfot_urltuitdebugtopener(tselfRRtuR((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt__init__s					cCsG|jrCx7|jjD]&}|jƒt|dd„ƒƒqWndS(Nt	close_allcSsdS(N(R(((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt<lambda>2s(Rthandlerstclosetgetattr(Rth((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt__del__.s	
cCs|jS(N(R(R((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyR4scCs"t|jdƒjƒƒ|_dS(Ntcapabilities(tsett_calltsplitR(R((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt
_fetchcaps9scCss|jdkrly|jƒWn tjk
r?tƒ|_nX|jjddj|jpadgƒƒn|jS(Nscapabilities: %s
t tnone(	RRR-terrort	RepoErrorR*RRtjoin(R((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt
_capabilities<s cCstjtdƒƒ‚dS(Ns!operation not supported over http(RRR(R((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pytlockFscKs½|dkrd|d<n|jddƒ}d}tj|dƒrO|j}n|dk	rjt|ƒ}n|jdiƒ}|dk	r¡d|kr¡d|d<n|rÖ|jjd	d
tƒrÖd|d<d
|d<n|jj	d|ƒd|fg}d}t|ƒdkrE|j
dƒ}|rEt|jdƒdƒ}qEn|dkr(t
jt|jƒƒƒ}	d}
|t|
ddƒ}d}xOtdt|	ƒ|ƒD]5}
|d7}|
t|ƒ}|	|
|
|!||<q©Wgtd|dƒD]}|
t|ƒ^qö}dj|ƒ|d<n|t|jƒƒ7}dt
j|ƒ}d|j|f}tj|||ƒ}|dk	r°|jj	d|ƒ|jdd|ƒny|jj|ƒ}Wnªtjk
r}|jdkrtjtdƒƒ‚n‚nktj k
rM}|jj	d|ƒ|jj!ƒt"d|ƒ‚n&t#k
rrtjtd ƒƒ‚nX|j$ƒ}|j%|ƒr¢|t|ƒ }n|jj&d!ƒ|j&d!ƒkrï|jj'sï|jj(td"ƒ|ƒqïn||_y|j)d#ƒ}Wn&t*k
r3|j+j,d#dƒ}nXtj-|jƒ}|j.d$ƒrmt/j0|j1ƒƒ‚n|j.d%ƒpª|j.d&ƒrž|j+j,d'ƒpª|j.d(ƒsþ|jj	d)tj-|ƒƒt/j2td*ƒ||påd+|j1d,ƒfƒ‚n|j.d%ƒr¹yH|jd-dƒd}t3g|jd.ƒD]}t|ƒ^q9ƒ}Wn0t4k
r‡t/j2td/ƒ||fƒ‚nX|d1kr¹t/j2td0ƒ||fƒ‚q¹n|S(2NtpushkeyttdataitlengththeaderssContent-Typesapplication/mercurial-0.1Rtusehttp2s100-ContinuetExpectt1s	X-HgHttp2ssending %s command
tcmdt
httpheadert,s
X-HgArg-%st000s: 
itVarys?%ss%s%sssending %s bytes
sContent-Lengths%di‘sauthorization faileds$http error while sending %s command
s,http error, possibly caused by proxy settingt/sreal URL is %s
scontent-typesapplication/hg-errorsapplication/mercurial-s
text/plainscontent-lengthsapplication/hg-changegroupsrequested URL: '%s'
sI'%s' does not appear to be an hg repository:
---%%<--- (%s)
%s
---%%<---
sno content-typeit-t.s+'%s' sent a broken Content-Type header (%s)s'%s' uses newer protocol %s(ii(5tpopRRtsafehasattrR8tlenRt
configbooltFalseRtcapabletintR,turllibt	urlencodetsortedtitemstxrangetstrtrangeR2Rturllib2tRequesttadd_unredirected_headerRtopent	HTTPErrortcodeRRRR	t	tracebackR
t
IndexErrortgeturltendswithtrstriptquiettwarnt	getheadertAttributeErrorR9tgetthidepasswordt
startswithR0tOutOfBandErrortreadR1ttuplet
ValueError(RR=targsR7tsizeR9tqt
headersizeR>tencargst	headerfmtt
contentlent	headernumtitheaderR'tvaryheaderstqstcutreqtresptinsttresp_urltprototsafeurltversiontntversion_info((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt_callstreamIs¨




0

! 	
	%2
cKs2|j||}z|jƒSWd|jƒXdS(N(RRfR%(RR=Ritfp((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyR+«sc
Ksœ|jdƒ}y|jdƒ}Wntk
r>dg}nXx'|D]}|tjkrF|}PqFqFWtj|d|ƒ}tj|j	|dƒ}idd6}	zÚye|j
|d|d|	|}
|
jd	d
ƒ}t|ƒdkrtj
tdƒ|
ƒ‚n|SWnntjk
r{}|jd
tjtjfkrbtjtdƒ|jd
ƒ‚ntj|jd
ƒ‚nXWd|jƒtj|ƒXdS(NtunbundleR?R6trbsapplication/mercurial-0.1sContent-TypeR7R9s
iisunexpected response:ispush failed: %s(RJR,RatchangegrouptbundletypestwritebundleRthttpconnectionthttpsendfileRR+RGR0t
ResponseErrorRtsocketRiterrnot
ECONNRESETtEPIPERRR%tostunlink(
RR=tcgRittypestxttypettempnameR€R9trtvalsterr((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt	_callpush³s2



#
c	Ksñd}d}z·tjddddƒ\}}tj|dƒ}|jdƒ}x&|rv|j|ƒ|jdƒ}qQW|jƒtj	|j
|dƒ}idd	6}|j|d
|d||SWd|dk	rì|jƒtj|ƒnXdS(Ntprefixs
hg-bundle-tsuffixs.hgtwbiR‚sapplication/mercurial-0.1sContent-TypeR7R9(
RttempfiletmkstempRtfdopenRftwriteR%R†R‡RRRŽ(	RR=R€RitfhtfilenametfdtdR9((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt_calltwowaystream×s 	


 
cKs%|j||}tjt|ƒƒS(N(RRtchunkbufferR(RR=Ritstream((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt_callcompressableìscCs
|‚dS(N((Rt	exception((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt_abortðs(t__name__t
__module__R!R(RR-R3R4RR+R—R£R¦R¨(((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyRs					
		b		$		t	httpspeercBseZd„ZRS(cCs8tjs!tjtdƒƒ‚ntj|||ƒdS(Ns1Python support for SSL and HTTPS is not installed(Rt	has_httpsRRRRR!(RRR((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyR!ôs	(R©RªR!(((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyR«óscCsù|rtjtdƒƒ‚nys|jdƒrBt||ƒ}nt||ƒ}y|jƒWn*tjk
r‹|j	t
t
fgƒnX|SWnatjk
rô}y.tj|d||ƒ}|j
dƒ|SWqõtjk
rð|‚qõXnXdS(Ns!cannot create new http repositoryshttps:sstatic-s(falling back to static-http)
(RRRRdR«RR-R0R1tbetweenRtstatichttprepotinstancetnote(RRtcreateRxt
httpexceptionR”((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyR¯ús$
(tnodeRti18nRR›RƒR®R0R†RRt	wireprotoRRLRSRRRŠR‰RtwirepeerRR«R¯(((s6/usr/lib/python2.7/dist-packages/mercurial/httppeer.pyt<module>	sT<	Ø

Copyright © 2017 || Recoded By Mr.Bumblebee