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/windows.pyc

x7_c@@sEddlmZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZm
Z
mZyddlZejWnek
rddlZnXejZejZejZejZejZejZejZejZejZejZejjZejZej Z ej!Z!dZ"de#fdYZ$d	d
dZ%de#fd
YZ&e&ej'e_(e_'dZ)dZ*dZ+dZ,dZ-ddZ/dZ0dZ1dZ2dZ3dZ4dZ5dZ6ej7j8Z9ej:Z;dZ<da=da>dZ?dZ@d	dZAdZBd ZCd!ZDeEejFejGgZHd"ZIdd#ZJdd$ZKd%ZLeMd&ZNd'ZOd(ZPd)ZQd*ZRd+e#fd,YZSddd-ZTeUZVd.ZWd/ZXd0ZYd1ZZd2Z[dS(3i(tabsolute_importNi(t_(tencodingterrortosutiltwin32itmixedfilemodewrappercB@szeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZRS(s)Wraps a file handle when it is opened in read/write mode.

    fopen() and fdopen() on Windows have a specific-to-Windows requirement
    that files opened with mode r+, w+, or a+ make a call to a file positioning
    function when switching between reads and writes. Without this extra call,
    Python will raise a not very intuitive "IOError: [Errno 0] Error."

    This class wraps posixfile instances when the file is opened in read/write
    mode and automatically adds checks or inserts appropriate file positioning
    calls when necessary.
    iiicC@s*tj|d|tj|dddS(Nt_fpt_lastopi(tobjectt__setattr__(tselftfp((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt__init__@scC@st|j|S(N(tgetattrR(Rtname((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt__getattr__DscC@s|jj||S(N(RR
(RRtvalue((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR
GscC@s|jjdtjdS(Ni(RtseektostSEEK_CUR(R((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	_noopseekJscO@s)tj|d|j|jj||S(NR(R	R
tOPNONERR(Rtargstkwargs((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRMscC@sE|j|jkr|jntj|d|j|jj|S(NR(RtOPREADRR	R
tOPWRITERtwrite(Rtd((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRQs
cO@sH|j|jkr|jntj|d|j|jj||S(NR(RRt
_noopeseekR	R
RRt
writelines(RRR((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRXs
cO@sH|j|jkr|jntj|d|j|jj||S(NR(RRRR	R
RRtread(RRR((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR_s
cO@sH|j|jkr|jntj|d|j|jj||S(NR(RRRR	R
RRtreadline(RRR((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR fs
cO@sH|j|jkr|jntj|d|j|jj||S(NR(RRRR	R
RRt	readlines(RRR((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR!ms
(t__name__t
__module__t__doc__RRRR
RR
RRRRRR R!(((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR0s									tricC@syUtj|||}d|kr:|jdtjnd|krPt|S|SWn2tk
r}t|jd||j	fnXdS(s/Open a file with even more POSIX-like semanticstait+s%s: %sN(
Rt	posixfileRRtSEEK_ENDRtWindowsErrortIOErrorterrnotstrerror(Rtmodet	bufferingRterr((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR(ts
t	winstdoutcB@s;eZdZdZdZdZdZdZRS(s3stdout on windows misbehaves if sent through a pipecC@s
||_dS(N(R(RR((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR
scC@st|j|S(N(RR(Rtkey((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRscC@s)y|jjWntk
r$nXdS(N(RtcloseR+(R((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR3s
cC@sy_d}t|}d}d|_x7||kr]||}|jj|||!|}q'WWnDtk
r}|jdkrn|jttjdnXdS(Ni>isBroken pipe(tlent	softspaceRRR+R,R3tEPIPE(Rtstlimittltstarttendtinst((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRs	

cC@s_y|jjSWnGtk
rZ}|jtjkr;n|jttjdnXdS(NsBroken pipe(RtflushR+R,tEINVALR3R6(RR<((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR=s
(R"R#R$R
RR3RR=(((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR1s				cC@sFytjddkSWn'tk
rAdtjjddkSXdS(s+return true if run on windows 95, 98 or me.iitcommandtcomspectN(tsystgetwindowsversiontAttributeErrorRtenvirontget(((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt
_is_win_9xs
cC@stS(N(RG(((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt
openhardlinksscC@s.|d}|ddkr*|dd!}n|S(s<parses the output produced by patch and returns the filenameiit`ii((toutput_linetpf((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytparsepatchoutputs
cC@sd|jkrdpd}|r4d||fp7|}|jdsX|jdrttjtd|nt|}|rd|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
startswithRtAbortRt
shellquote(tsshcmdthosttusertporttpflagR((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytsshargss	
cC@sdS(N((tfR9tx((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytsetflagsscC@sdS(N((tsrctdstR.((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytcopymodescC@stS(N(tFalse(tpath((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	checkexecscC@stS(N(R`(Ra((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	checklinkscC@sJt|dd}|dk	rF|dkrFtj|tjndS(Ntfilenoi(RtNonetmsvcrttsetmodeRtO_BINARY(tfdtfno((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	setbinaryscC@s|jtjdS(NRO(treplaceRtsep(Ra((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytpconvertscC@s|jddS(NROs\(Rl(Ra((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	localpathscC@sttjj|S(N(RnRRatnormpath(Ra((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRpscC@s
tj|S(N(Rtupper(Ra((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytnormcasescC@stS(N(R`(ts1ts2((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytsamestatscC@sztdkrtjdantdkr?tjdjan|rft|rftj|rf|Sdtjd|S(s
    >>> shellquote(r'C:\Users\xyz')
    '"C:\\Users\\xyz"'
    >>> shellquote(r'C:\Users\xyz/mixed')
    '"C:\\Users\\xyz/mixed"'
    >>> # Would be safe not to quote too, since it is all double backslashes
    >>> shellquote(r'C:\\Users\\xyz')
    '"C:\\\\Users\\\\xyz"'
    >>> # But this must be quoted
    >>> shellquote(r'C:\\Users\\xyz/abc')
    '"C:\\\\Users\\\\xyz/abc"'
    s(\\*)("|\\$)s[^a-zA-Z0-9._:/-]s"%s"s\1\1\\\2N(t_quotereRetretcompilet_needsshellquotetsearchtsub(R7((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRSs#cC@stjdkrd|dS|S(s4Build a command string suitable for os.popen* calls.iiit"(iii(RBtversion_info(tcmd((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytquotecommand scC@s'|dtj7}tjt||S(Ns 2> %s(RtdevnulltpopenR(R?R.((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR'scC@std||fS(Nsexited with status %d(R(tcode((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytexplainexit.scC@stS(N(tTrue(tst((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytisowner3sc@stjjdd}g|jjtjD]}|^q.tjj|djkrndgnfd}tj|kr||SxTtjjddjtjD]1}|tjj	||}|dk	r|SqW|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;.CMDiRAc@s5x.D]&}||}tjj|r|SqWdS(s:Will append extension (if needed) and return existing fileN(RRatexistsRe(tpathcommandtextt
executable(tpathexts(s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytfindexistingAs


tPATHN(
RRERFRPtsplittpathsepRatsplitextRmtjoinRet
expandusert
expandvars(R?tpathextRRRaR((Rs5/usr/lib/python2.7/dist-packages/mercurial/windows.pytfindexe6s+"
(cc@s7i}tj}x!|D]}t|}tjj|\}}|sOd}n|j|d}|dkryYtgt	j
|tD]6\}}}	||	jt
krt||	f^q}
Wn@tk
r}|jtjtjtjfkrni}
nX|j||
}n|j|dVqWdS(sStat 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.N(tstattS_IFMTRrRRaRRFRetdictRtlistdirRtst_modet_wantedkindstOSErrorR,tENOENTR>tENOTDIRt
setdefault(tfilestdircachetgetkindtnftdirtbasetcachetntkR7tdmapR0((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	statfilesTs(	
	4
cC@sdS(siReturn the name of the user with the given uid.

    If uid is None, return the name of the current user.N(Re(tuid((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytusernamepscC@sdS(skReturn the name of the group with the given gid.

    If gid is None, return the name of the current group.N(Re(tgid((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	groupnamevscC@stj|rdStj|tjj|\}}|sYtjj|\}}nxg|r|ry$tj|r~dStj|Wnttfk
rPnXtjj|\}}q\WdS(sspecial version of os.removedirs that does not remove symlinked
    directories or junction points if they actually contain filesN(RRRtrmdirRaRt
ValueErrorR(Rtheadttail((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt
removedirs|s
cC@styt|Wn1tk
rA}|o5|jtjksBqBnXyttjj|Wntk
ronXdS(s.unlink and remove the directory if it is emptyN(tunlinkRR,RRRRatdirname(RZt
ignoremissingte((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt
unlinkpaths

cC@s`ytj||WnEtk
r[}|jtjkr>nt|tj||nXdS(s=atomically rename file src to dst, replacing dst if it existsN(RtrenameRR,tEEXISTR(R]R^R((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRs
cC@stjgtjd S(Ni(RBRtargv(((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytgethgcmdscC@s
tdS(N(tKeyError(R((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytgroupmembersscC@stS(N(R`(RZ((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytisexecst	cachestatcB@seZdZdZRS(cC@sdS(N((RRa((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyR
scC@stS(N(R`(R((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	cacheables(R"R#R
R(((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyRs	cC@s|dkr!tjtjf}n!t|ttfsB|f}nx^|D]V}y<tjtj|||d}t	j
|jdSWqItk
rqIXqIWdS(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(
RetwinregtHKEY_CURRENT_USERtHKEY_LOCAL_MACHINEt
isinstancetlistttupletQueryValueExtOpenKeyRttolocaltencodetEnvironmentError(R2tvalnametscopeR7tval((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt	lookupregs	
"
cC@stS(s(check whether a stat result is a symlink(R`(R((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt
statislinkscC@stS(s1check whether a stat result is an executable file(R`(R((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt
statisexecscC@s
tdS(N(tNotImplementedError(tfds((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytpollscC@s_g}xItrQtj|}|s(Pn|j|}|sAPn|j|q	Wdj|S(s$Read all available data from a pipe.RA(RRtpeekpipeRtappendR(tpipetchunkstsizeR7((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytreadpipes	cC@stddS(Nsunsupported platform(R(tsockRa((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pytbindunixsockets(\t
__future__RR,RfRRwRRBti18nRRARRRRt_winregRtCloseKeytImportErrortexecutablepathtgetusert
hidewindowtmakedirtnlinkstoslinkt
samedevicetsamefiletsetsignalhandlert
spawndetachedRaRt	termwidthttestpidRtumaskR	RR(R1tstdoutt
__stdout__RGRHRLRYR\ReR_RbRcRkRnRoRpRrt
normcasespecsRqtnormcasespect
upperfallbacktnormcasefallbackRuRvRyRSRRRRRtsettS_IFREGtS_IFLNKRRRRRR`RRRRRRRRtexpandglobsRRRRR(((s5/usr/lib/python2.7/dist-packages/mercurial/windows.pyt<module>s"
													D*