KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/mercurial/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/mercurial/commandserver.pyo
�
Hq�Qc@s�ddlmZddlZddlZddlZddlZddlZddlZda	d�Z
defd��YZdefd��YZ
defd	��YZdS(
i����(t_NcGs<ts
dSx!|D]}tjt|��qWtj�dS(N(tlogfiletwritetstrtflush(targsta((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pytlogs

tchanneledoutputcBs)eZdZd�Zd�Zd�ZRS(sg
    Write data from in_ to out in the following format:

    data length (unsigned int),
    data
    cCs||_||_||_dS(N(tin_touttchannel(tselfR	R
R((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyt__init__s		cCsS|s
dS|jjtjd|jt|���|jj|�|jj�dS(Ns>cI(R
RtstructtpackRtlenR(Rtdata((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyR$s
(cCs+|dkrt|��nt|j|�S(Ntisattytfileno(sisattysfileno(tAttributeErrortgetattrR	(Rtattr((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyt__getattr__+s(t__name__t
__module__t__doc__R
RR(((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyRs		tchanneledinputcBsYeZdZdZd�Zdd�Zd�Zdd�Zd�Zd	�Z	d
�Z
RS(s/
    Read data from in_.

    Requests for input are written to out in the following format:
    channel identifier - 'I' for plain input, 'L' line based (1 byte)
    how many bytes to send at most (unsigned int),

    The client replies with:
    data length (unsigned int), 0 meaning EOF
    data
    iicCs||_||_||_dS(N(R	R
R(RR	R
R((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyR
?s		i����cCsw|dkr`|j}|j||j�}|}x)|r[|j||j�}||7}q3W|S|j||j�SdS(Ni(tmaxchunksizet_readR(Rtsizetstbuf((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pytreadDs		cCs||s
dS|jjtjd||��|jj�|jjd�}tjd|�d}|shdS|jj|�SdS(Nts>cIis>Ii(R
RRRRR	R!tunpack(RRRtlength((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyRSs
cCs~|dkrj|j}|j|d�}|}x6|re|ddkre|j|d�}||7}q0W|S|j|d�SdS(NitLi����s
(RR(RRRR ((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pytreadlinecs	cCs|S(N((R((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyt__iter__rscCs|j�}|st�n|S(N(R&t
StopIteration(Rtl((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pytnextus	cCs+|dkrt|��nt|j|�S(NRR(sisattysfileno(RRR	(RR((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyR{si(RRRRR
R!RR&R'R*R(((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyR0s				tservercBsXeZdZd�Zd�Zd�Zd�Zd�Zied6ed6Zd�Z	RS(	sq
    Listens for commands on stdin, runs them and writes the output on a channel
    based stream to stdout.
    cCs(tj�|_|jddd�}|rc|dkrQttjtjd�aqct	|d�an|j
|_||_|j|_
|dkrttjtjd�|_ttjtjd�|_ttjtjd	�|_ttjtjd
�|_tj|_ntjtd�|��dS(Nt	cmdserverRt-tdRtpipetetotItrsunknown mode %s(tostgetcwdtcwdtconfigtNoneRtsyststdoutRtopentbaseuituitrepotrepouitstderrtcerrtcoutRtstdintcintcresulttclienttutiltAbortR(RR=R>tmodetlogpath((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyR
�s 	cCs/|s
dS|jj|�}|s+t�n|S(NR"(RFR!tEOFError(RRR((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyR�s	cCs"tjd|jd��d}|s.g}n|j|�jd�}|jj�}||j_|jj�|j_|jj	_
|jj�|jj�t
j|||j|j|j|j�}t
j
|�p�d}d|kr�tj|j�n|jjtjdt|���dS(sk reads a list of  terminated arguments, executes
        and writes the return code to the result channel s>Iiits--cwds>iN(RR#RtsplitR=tcopyR>R<R?tdirstatet_uit
invalidatetinvalidatedirstatetdispatchtrequestRDRBRAR4tchdirR6RERRtint(RR$Rtcopieduitreqtret((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyt
runcommand�s	"

cCs|jjtj�dS(s3 writes the current encoding to the result channel N(RERtencoding(R((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pytgetencoding�scCsd|jj�d }|rZ|jj|�}|r>||�qZtjtd�|��n|dkS(Ni����sunknown command %sR"(RFR&tcapabilitiestgetRGRHR(Rtcmdthandler((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pytserveone�s
RZR\cCswddjt|j��}|d7}|dtj7}|jj|�yx|j�r\qMWWntk
rrdSXdS(Nscapabilities: t s
s
encoding: ii(tjointsortedR]R[RBRRaRK(Rthellomsg((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pytserve�s

(
RRRR
RRZR\RaR]Rf(((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyR+�s					

(ti18nRRR9R4RSR[RGR8RRtobjectRRR+(((s=/usr/lib64/python2.7/site-packages/mercurial/commandserver.pyt<module>s$		P

Anon7 - 2021