HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pyc
�
1�3\c@@swddlmZddlZddlmZddlmZmZejZej	Z	de
fd��YZd�ZdS(	i(tabsolute_importNi(t_(tpycompattutilt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t
d�dt
d�d|j
dd�|_dS(Nitsendingtunittkbttotalii(tuitopent_datatseektclosetwritetostfstattfilenotst_sizetlengtht_postmakeprogressRt	_progress(tselfR	targstkwargs((s>/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pyt__init__!s		cO@s\|jj||�}|s,|jj�|S|jt|�7_|jj|jd�|S(Ni(RtreadRtcompleteRtlentupdate(RRRtret((s>/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pyR1s
cC@s|S(N((R((s>/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pyt	__enter__:scC@s|j�dS(N(R
(Rtexc_typetexc_valtexc_tb((s>/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pyt__exit__=s(t__name__t
__module__t__doc__RRR R$(((s>/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pyRs
				cC@sHtj|�}i}x�|jd�D]�\}}|dkrCq%nd|krl|jtd�|�q%n|jdd�\}}|j|i�}|dkr�tj|�}n|||<q%W|j	d	d�\}	}
d}d
}d}
xU|j�D]G\}}|r)||jd|�kr)q�n|jd�}|sDq�n|j	d	d�}t
|�dkr�|d
g|d}}n|jd�p�d
j	�}|dks�|
j|�r�t
|�|ks�t
|�|kr�|r�d|kr�|	|kr�t
|�}||f}
|jd�}|r@|r@||d<q@q�q�W|
S(Ntautht
cookiefilet.s!ignoring invalid [auth] key '%s'
itusernametcerttkeys://itprefixtschemesthttpst*(R)(R+R,R-(RtbytesurltconfigitemstwarnRtrsplitt
setdefaultRt
expandpathtsplittNonet	iteritemstgetRt
startswith(R	turitusertgroupsR-tvaltgrouptsettingtgdicttschemethostpathtbestusertbestlentbestauthR(R.tpR/((s>/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pytreadauthforuriAsJ$
(
t
__future__RRti18nRtRRturlerrturlreqtobjectRRJ(((s>/usr/lib64/python2.7/site-packages/mercurial/httpconnection.pyt<module>s		(