403 Forbidden


Disable Functions:
Path : /usr/lib64/python2.7/site-packages/mercurial/
File Upload :
Command :
Current File : //usr/lib64/python2.7/site-packages/mercurial/windows.pyo

�
}�^c@s�ddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZej
Z
ejZejZejZejZejZejZejZejZejZejjZejZejZejZdZddd�Zejje_defd��YZ e e
j!�e
_"e
_!d�Z#d	�Z$d
�Z%d�Z&d�Z'dd
�Z)d�Z*d�Z+d�Z,d�Z-d�Z.d�Z/d�Z0d�Z1d�Z2da3d�Z4d�Z5dd�Z6d�Z7d�Z8d�Z9e:e	j;e	j<g�Z=d�Z>dd�Z?dd�Z@d �ZAeBd!�ZCd"�ZDd#�ZEd$�ZFd%�ZGd&efd'��YZHddd(�ZIeJZKd)�ZLd*�ZMdS(+i����(t_NitrcCsPytj|||�SWn2tk
rK}t|jd||jf��nXdS(Ns%s: %s(tosutilt	posixfiletWindowsErrortIOErrorterrnotstrerror(tnametmodet	bufferingterr((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyRst	winstdoutcBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(s3stdout on windows misbehaves if sent through a pipecCs
||_dS(N(tfp(tselfR
((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt__init__)scCst|j|�S(N(tgetattrR
(Rtkey((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt__getattr__,scCs)y|jj�Wntk
r$nXdS(N(R
tcloseR(R((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR/s
cCs�y_d}t|�}d}d|_x7||kr]||}|jj|||!�|}q'WWnDtk
r�}|jdkr��n|j�ttjd��nXdS(Ni�>isBroken pipe(tlent	softspaceR
twriteRRRtEPIPE(Rtstlimittltstarttendtinst((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR5s	

cCs_y|jj�SWnGtk
rZ}|jtjkr;�n|j�ttjd��nXdS(NsBroken pipe(R
tflushRRtEINVALRR(RR((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyRGs
(t__name__t
__module__t__doc__RRRRR(((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR&s				cCsFytj�ddkSWn'tk
rAdtjjdd�kSXdS(s+return true if run on windows 95, 98 or me.iitcommandtcomspectN(tsystgetwindowsversiontAttributeErrortostenvirontget(((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt
_is_win_9xRs
cCst�S(N(R,(((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt
openhardlinksYscCs.|d}|ddkr*|dd!}n|S(s<parses the output produced by patch and returns the filenameiit`ii����((toutput_linetpf((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytparsepatchoutput\s
c	Cs�d|j�krdpd}|r4d||fp7|}|jd�sX|jd�rttjtd�|��nt|�}|r�d|t|�|f}n|S(	s$Build argument list for ssh or Plinktplinks-Ps-ps%s@%st-t/s9illegal ssh hostname or username starting with - or /: %ss%s %s %s(tlowert
startswithterrortAbortRt
shellquote(tsshcmdthosttusertporttpflagtargs((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytsshargscs	
cCsdS(N((tfRtx((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytsetflagspscCsdS(N((tsrctdstR	((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytcopymodesscCstS(N(tFalse(tpath((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	checkexecvscCstS(N(RG(RH((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	checklinkyscCsJt|dd�}|dk	rF|�dkrFtj|�tj�ndS(Ntfilenoi(RtNonetmsvcrttsetmodeR)tO_BINARY(tfdtfno((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	setbinary|scCs|jtjd�S(NR4(treplaceR)tsep(RH((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytpconvert�scCs|jdd�S(NR4s\(RS(RH((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	localpath�scCsttjj|��S(N(RUR)RHtnormpath(RH((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyRW�scCs
tj|�S(N(tencodingtupper(RH((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytnormcase�scCs"tjjttjj|���S(sX
    Returns the true, canonical file system path equivalent to the given
    path.
    (R)RHRWRZtrealpath(RH((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR[�scCstS(N(RG(ts1ts2((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytsamestat�scCs2tdkrtjd�andtjd|�S(Ns(\\*)("|\\$)s"%s"s\1\1\\\2(t_quotereRLtretcompiletsub(R((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR9�scCstjdkrd|dS|S(s4Build a command string suitable for os.popen* calls.iiit"(iii(R&tversion_info(tcmd((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytquotecommand�scCs'|dtj7}tjt|�|�S(Ns 2> %s(R)tdevnulltpopenRf(R#R	((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyRh�scCstd�||fS(Nsexited with status %d(R(tcode((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytexplainexit�scCstS(N(tTrue(tst((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytisowner�scstjjdd�}g|j�jtj�D]}|^q.�tjj|�dj��krndg�n�fd�}tj|kr�||�SxTtjjdd�jtj�D]1}|tjj	||��}|dk	r�|Sq�W|tjjtjj|���S(s*Find executable for command searching like cmd.exe does.
    If command is a basename then PATH is searched for command.
    PATH isn't searched if command is an absolute or relative path.
    An extension from PATHEXT is found and added if not present.
    If command isn't found None is returned.tPATHEXTs.COM;.EXE;.BAT;.CMDiR%cs5x.�D]&}||}tjj|�r|SqWdS(s:Will append extension (if needed) and return existing fileN(R)RHtexistsRL(tpathcommandtextt
executable(tpathexts(s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytfindexisting�s


tPATHN(
R)R*R+R5tsplittpathsepRHtsplitextRTtjoinRLt
expandusert
expandvars(R#tpathextRqRtRHRr((Rss7/usr/lib64/python2.7/site-packages/mercurial/windows.pytfindexe�s+"
(ccs:i}tj}x$|D]}t|�}tjj|�\}}|sOd}n|j|d�}|dkr!yYtgt	j
|t�D]6\}}}	||	j�t
kr�t|�|	f^q��}
WnCtk
r}|jdtjtjtjfkr�ni}
nX|j||
�}n|j|d�VqWdS(s�Stat each file in files. Yield each stat, or None if a file
    does not exist or has a type we don't care about.

    Cluster and cache stat per directory to minimize number of OS stat calls.t.iN(tstattS_IFMTRZR)RHRvR+RLtdictRtlistdirRktst_modet_wantedkindstOSErrorRtENOENTRtENOTDIRt
setdefault(tfilestdircachetgetkindtnftdirtbasetcachetntkRtdmapR((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	statfiles�s(	
	4
cCsdS(siReturn the name of the user with the given uid.

    If uid is None, return the name of the current user.N(RL(tuid((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytusername�scCsdS(skReturn the name of the group with the given gid.

    If gid is None, return the name of the current group.N(RL(tgid((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	groupnamescCs�tj|�rdStj|�tjj|�\}}|sYtjj|�\}}nxg|r�|r�y$tj|�r~dStj|�Wnttfk
r�PnXtjj|�\}}q\WdS(s�special version of os.removedirs that does not remove symlinked
    directories or junction points if they actually contain filesN(RR�R)trmdirRHRvt
ValueErrorR�(Rtheadttail((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt_removedirss
cCstyt|�Wn1tk
rA}|o5|jtjksB�qBnXyttjj|��Wntk
ronXdS(s.unlink and remove the directory if it is emptyN(tunlinkR�RR�R�R)RHtdirname(RAt
ignoremissingte((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt
unlinkpaths

cCs`ytj||�WnEtk
r[}|jtjkr>�nt|�tj||�nXdS(s=atomically rename file src to dst, replacing dst if it existsN(R)trenameR�RtEEXISTR�(RDRER�((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR�*s
cCstjgtjd S(Ni(R&Rrtargv(((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytgethgcmd4scCs
t�dS(N(tKeyError(R((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytgroupmembers7scCstS(N(RG(RA((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pytisexec;st	cachestatcBseZd�Zd�ZRS(cCsdS(N((RRH((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR?scCstS(N(RG(R((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	cacheableBs(R R!RR�(((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyR�>s	cCs�|dkr!tjtjf}n!t|ttf�sB|f}nx^|D]V}y<tjtj||�|�d}t	j
|jd��SWqItk
r�qIXqIWdS(s* Look up a key/value name in the Windows registry.

    valname: value name. If unspecified, the default value for the key
    is used.
    scope: optionally specify scope for registry lookup, this can be
    a sequence of scopes to look up in order. Default (CURRENT_USER,
    LOCAL_MACHINE).
    isUTF-8N(
RLt_winregtHKEY_CURRENT_USERtHKEY_LOCAL_MACHINEt
isinstancetlistttupletQueryValueExtOpenKeyRXttolocaltencodetEnvironmentError(RtvalnametscopeRtval((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt	lookupregEs	
"
cCstS(s(check whether a stat result is a symlink(RG(Rl((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt
statislink\scCstS(s1check whether a stat result is an executable file(RG(Rl((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt
statisexec`s(Nti18nRRRXR7RRMR)R`RR&R�twin32texecutablepathtgetusert
hidewindowtmakedirtnlinkstoslinkt
samedevicetsamefiletsetsignalhandlert
spawndetachedRHRvt	termwidthttestpidR�tumaskRR"tobjectRtstdoutt
__stdout__R,R-R1R@RCRLRFRIRJRRRURVRWRZR[R^R_R9RfRhRjRmR}tsettS_IFREGtS_IFLNKR�R�R�R�R�RGR�R�R�R�R�R�R�RktexpandglobsR�R�(((s7/usr/lib64/python2.7/site-packages/mercurial/windows.pyt<module>sv$T													*				
																		
	
				

404 Not Found
[ LogOut ]