ó ŸçƒQc@s ddlmZddlmZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZd„Zde jfd„ƒ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/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt zgenerators  thttppeercBskeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „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 (tpathR tcapsthandlert urlopenerRturltquerytfragmenttAbortRtauthinfot_urltuitdebugtopener(tselfRRtuR((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt__init__s     cCsG|jrCx7|jjD]&}|jƒt|dd„ƒƒqWndS(Nt close_allcSsdS(N(R (((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt1s(Rthandlerstclosetgetattr(Rth((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt__del__-s  cCs|jS(N(R(R((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyR3scCs"t|jdƒjƒƒ|_dS(Nt capabilities(tsett_calltsplitR(R((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt _fetchcaps8scCss|jdkrly|jƒWn tjk r?tƒ|_nX|jjddj|jpadgƒƒn|jS(Nscapabilities: %s t tnone( RR R-terrort RepoErrorR*RRtjoin(R((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt _capabilities;s  cCstjtdƒƒ‚dS(Ns!operation not supported over http(RRR(R((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pytlockEsc Ks½|dkrd|dtencargst headerfmtt contentlent headernumtitheaderR't varyheaderstqstcutreqtresptinsttresp_urltprototsafeurltversiontnt version_info((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt _callstreamHs¨         0    !     %2  cKs2|j||}z|jƒSWd|jƒXdS(N(RRfR%(RR=Ritfp((s6/sys/lib/python2.7/site-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 | ƒd krt 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,Rat changegroupt bundletypest writebundleR thttpconnectiont httpsendfileRR+RGR0t ResponseErrorRtsocketRiterrnot ECONNRESETtEPIPERRR%tostunlink( RR=tcgRittypestxttypettempnameR€R9trtvalsterr((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt _callpush²s2    # cCs |‚dS(N((Rt exception((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt_abortÖscCstjt|ƒƒS(N(Rt chunkbufferR(Rtstream((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt _decompressÙs( t__name__t __module__R!R(RR-R3R4RR+R—R™Rœ(((s6/sys/lib/python2.7/site-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/sys/lib/python2.7/site-packages/mercurial/httppeer.pyR!Ýs (RRžR!(((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyRŸÜscCsù|rtjtdƒƒ‚nys|jdƒrBt||ƒ}nt||ƒ}y|jƒWn*tjk r‹|j t t fgƒnX|SWnatjk rô}y.t j |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/sys/lib/python2.7/site-packages/mercurial/httppeer.pyR£ãs$ (tnodeRti18nRRƒR¢R0R†RRt wireprotoRRLRSRRRŠR‰RtwirepeerRRŸR£(((s6/sys/lib/python2.7/site-packages/mercurial/httppeer.pyt sT< Â