HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyc
ó
ÛXc@@sòddlmZddlZddlZddlZddlmZddlmZm	Z	m
Z
e
jZe
jZde
fd„ƒYZd„Zd	ejfd
„ƒYZdejfd„ƒYZead
Zdejejfd„ƒYZdS(i(tabsolute_importNi(t_(t
httpclienttsslutiltutilthttpsendfilecB@s2eZdZd„Zd„Zd„Zd„ZRS(sðThis is a wrapper around the objects returned by python's "open".

    Its purpose is to send file-like objects via HTTP.
    It do however not define a __len__ attribute because the length
    might be more than Py_ssize_t can handle.
    cO@s‡||_t||Ž|_|jj|_|jj|_|jj|_tj|jjƒƒj	|_
d|_|j
dd|_dS(Niii(
tuitopent_datatseektclosetwritetostfstattfilenotst_sizetlengtht_post_total(tselfRtargstkwargs((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyt__init__$s		cO@s”y|jj||Ž}Wn*tk
rE|jjtdƒdƒnX|jt|ƒ7_|jjtdƒ|jddtdƒd|j	ƒ|S(Ntsendingitunittkbttotal(
RtreadtEOFErrorRtprogressRtNoneRtlenR(RRRtret((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyR.s
cC@s|S(N((R((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyt	__enter__=scC@s|jƒdS(N(R
(Rtexc_typetexc_valtexc_tb((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyt__exit__@s(t__name__t
__module__t__doc__RRR!R%(((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyRs
	
		cC@s-tƒ}x›|jdƒD]Š\}}d|krN|jtdƒ|ƒqn|jddƒ\}}|j|tƒƒ}|dkr™tj|ƒ}n|||<qW|jddƒ\}	}
d}d	}d}
xU|j
ƒD]G\}}|r||jd|ƒkrqÞn|jd
ƒ}|s)qÞn|jddƒ}t|ƒdkrh|d	g|d}}n|jdƒpzdjƒ}|d
ksž|
j
|ƒrÞt|ƒ|ksÕt|ƒ|krÞ|rÞd|krÞ|	|krÞt|ƒ}||f}
|jdƒ}|r%|r%||d<q%qÞqÞW|
S(Ntautht.s!ignoring invalid [auth] key '%s'
itusernametcerttkeys://itprefixtschemesthttpst*(R+R,R-(tdicttconfigitemstwarnRtrsplitt
setdefaultRt
expandpathtsplitRt	iteritemstgetRt
startswith(RturitusertconfigR-tvaltgrouptsettingtgdicttschemethostpathtbestusertbestlentbestauthR)R.tpR/((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pytreadauthforuriDsD	$
tHTTPResponsecB@seZd„ZRS(cC@sdS(N((R((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyR
rs(R&R'R
(((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyRJqstHTTPConnectioncB@seZeZddd„ZRS(cC@sZ|dkri}nt|tƒr4|jdƒntjj|||d|d|ƒdS(Nitbodytheaders(Rt
isinstanceRR	RRKtrequest(RtmethodR<RLRM((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyROws	N(R&R'RJtresponse_classRRO(((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyRKuss-%(levelname)s:%(name)s:%(lineno)d:%(message)sthttp2handlercB@sAeZd„Zd„Zd„Zd„Zd„Zdd„ZRS(cC@s·tjj|ƒ||_||_i|_|jddddƒ}|r³tr³t	at
jdƒ}|jt
t
|jƒƒƒt
jƒ}|jt
jtƒƒ|j|ƒndS(NRthttp2debugleveltdefaultsmercurial.httpclient(turlreqtabstracthttphandlerRRtpwmgrt_connectionsR>Rt_configuredloggingtTruetloggingt	getLoggertsetLeveltgetattrtuppert
StreamHandlertsetFormattert	FormattertLOGFMTt
addHandler(RRRWtlogleveltloggerthandler((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyR†s			
cC@sBx2|jjƒD]!}x|D]}|jƒqWqWi|_dS(s=Close and remove all connection objects being kept for reuse.N(RXtvaluesR
(Rt	openconnstconn((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyt	close_all–s
cC@sçt|dd
ƒ}|jƒ}|r3|}|}nM|jƒrz|jƒ}|jƒjddƒdjddƒd}nd
}|rÂd|kr­|jddƒ\}}nd}||f}nd
}|sàtjdƒ‚n|||f}	|j	j
|	gƒ}
g|
D]}|jƒs|^q}|r<|d}
nu|
rY|jj
d	|ƒnd
}|jtjk	r}|j}n||d
|d|ƒ}
|j	j|	gƒj|
ƒt|jƒ}|j|jƒtd„|jƒDƒƒ}y|jƒ}d|kr0|jddƒdjddƒd}n|ddkrMd|}n|
j|jƒ||j|ƒ|
jƒ}Wn%tjk
r }tj|ƒ‚nX|j|_tj ||j|j!ƒƒ}|j"|_#|j$|_%|S(s¦Return an addinfourl object for the request, using http_class.

        http_class must implement the HTTPConnection API from httplib.
        The addinfourl return value is a file-like object.  It also
        has methods and attributes including:
            - info(): return a mimetools.Message object for the headers
            - geturl(): return the original request URL
            - code: HTTP status code
        t_tunnel_hosts://it/it:i8s
no host givens.all connections for %s busy, making a new one
ttimeouttproxy_hostportcs@s'|]\}}|jƒ|fVqdS(N(ttitle(t.0tnameR?((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pys	<genexpr>ÙsN(&R^Rtget_hostt	has_proxytget_selectorR8R5turlerrturlerrorRXR:tbusyRtdebugRotsockett_GLOBAL_DEFAULT_TIMEOUTR6tappendR2RMtupdatetunredirected_hdrstitemsROt
get_methodtdatatgetresponseterrorRtrecvRUt
addinfourltget_full_urltstatustcodetreasontmsg(Rt
http_classtreqtuse_sslttunhostthostt	proxyhostt	proxyporttproxytconnkeytallconnstctconnsthRoRMtpathtrterrtresp((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pytdo_openžsb	/%
)
cC@s>|jƒjdƒr"|j|ƒSd„}|j||tƒS(NR0c_@s#t|ƒ}t|d<t||ŽS(NRŽ(R2tFalseRK(RRtk2((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pytmakehttpconôs
(R‡R;t
https_openRRž(RRR ((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyt	http_openñs
	cC@sŠ|jƒ}|jj|ƒ\}}t|j||ƒ}|rk|\}}||_|jjd|ƒn	d|_|j|j	|t
ƒS(Ns#using auth.%s.* for authentication
(R‡RWtfind_stored_passwordRIRR)RzRRt_makesslconnectionRZ(RRturlR=tpasswordtresR@R)((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyR¡ús		i»cO@s2d}d}|r$|jdƒ}n|r<|jdƒ}n|jr€d|jkr€d|jkr€|jd}|jd}nd|kr˜d|ks¤d|krç|jddƒ\}}t|ƒ}d|krç|dd!}qçn||d	<||d
<t||dtdtjd
tj	d|j
|}|S(NiR-R,Rnt[s]:iiÿÿÿÿtkeyfiletcertfileRŽtssl_wrap_sockett
ssl_validatorR(RtpopR)R5tintRKRZRt
wrapsockettvalidatesocketR(RRtportRRR©Rªtcon((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyR¤s,'
$

			(R&R'RRkRR¢R¡R¤(((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyRR…s			S			(t
__future__RR[RR{ti18nRtRRRRwRUtobjectRRIRJRKRžRYRcthttphandlerthttpshandlerRR(((s</usr/lib/python2.7/dist-packages/mercurial/httpconnection.pyt<module>s		(	-