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

x7_c@@sddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlmZddlmZmZeZejjZejjZy
ejZWnek
r
dZnXejZejZejZeZej dZ ej e dZ!dZ"d	Z#d
Z$dZ%dZ&d
Z'ddZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2ej3j4Z5e2Z6ej7dkr)dZ2ej3j4Z5dZ6nej7dkre8dddgde9Z:d Z2ej3j;Z5e2Z6d!Z*d"Z+nda<d#Z=d$Z>d%d&Z?d'Z@d(ZAd)ZBd*ZCd+ZDeEe
jFe
jGgZHd,ZId-ZJdd.ZKdd/ZLd0ZMd1ZNd2ZOd3ZPd4ZQed5ZRddd6ZSd7ZTd8eUfd9YZVd:ZWd;ZXd<ZYd=ZZd>Z[d?Z\dS(@i(tabsolute_importNi(t_(tencodingterrorcC@s ttjd||fdS(Ns!hardlinks not supported: %s to %s(tOSErrorterrnotEINVAL(tsrctdst((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytoslink's	cC@sk|jdd}t|dkr.d|fS|djd}|rU||dfS|dd|dfS(sSame as posixpath.split, but faster

    >>> import posixpath
    >>> for f in ['/absolute/path/to/file',
    ...           'relative/path/to/file',
    ...           'file_alone',
    ...           'path/to/directory/',
    ...           '/multiple/path//separators',
    ...           '/file_at_root',
    ...           '///multiple_leading_separators_at_root',
    ...           '']:
    ...     assert split(f) == posixpath.split(f), f
    t/iti(trsplittlentrstrip(tpthttnh((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytsplit2s
cC@stS(s@return true if it is safe to hold open file handles to hardlinks(tTrue(((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt
openhardlinksHscC@stj|jS(s-return number of hardlinks for the given file(tostlstattst_nlink(tname((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytnlinksLscC@s}|d}tjjdkr?|ddkry|dd!}qyn:|jdry|jdryd|kry|dd!}n|S(	s<parses the output produced by patch and returns the filenameitOpenVMSit`iit't (Rtsystplatformt
startswithtendswith(toutput_linetpf((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytparsepatchoutputPs
*cC@sw|rd||fp|}d|d krHtjtd|nt|}|rsdt||f}n|S(sBuild argument list for sshs%s@%st-is4illegal ssh hostname or username starting with -: %ss-p %s %s(RtAbortRt
shellquote(tsshcmdthosttusertporttargs((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytsshargs[scC@stj|jd@dkS(s"check whether a file is executablei@i(RRtst_mode(tf((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytisexecfscC@smtj|j}|rtj|st|}|j}|jtj|ytj	||Wqt
k
rt|d}|j||jqXndStj|r
tj|}tj|t|d}|j||jdt
@}n|d@}|rE|rEtj|||d@d?t
@Bn$|ri|ritj||d@ndS(Ntwii@i$i(RRR.tstattS_ISLNKtopentreadtclosetunlinktsymlinkRtwritetreadlinktumasktchmod(R/tltxtstfptdatatsx((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytsetflagsjs4








$
cC@sytj|jd@}WnQtk
rm}|jtjkrDn|}|dkr`t}n|dM}nXtj||dS(sCopy the file mode from the file at path src to dst.
    If src doesn't exist, we're using mode instead. If mode is None, we're
    using umask.iiN(	RRR.RRtENOENTtNoneR;R<(RRtmodeR.tinst((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytcopymodes
cC@sytjtjBtjB}tjd|dd\}}zatj|tj|jd@}||@}tj	|||Atj|jd@|k}Wdtj
|XWnttfk
rt
SX|p|S(s}
    Check whether the given path is on a filesystem with UNIX-like exec flags

    Requires a directory (like /foo/.hg)
    tdirtprefixs
hg-checkexec-iN(R2tS_IXUSRtS_IXGRPtS_IXOTHttempfiletmkstempRR6R.R<R7tIOErrorRtFalse(tpatht	EXECFLAGStfhtfntmtnew_file_has_exectexec_flags_cannot_flip((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	checkexecs

 cC@sxtrtjd|dd}ytjd|dd}zjy4tjtjj|j|tj	|tSWn/t
k
r}|dtjkrwnnXWd|j
XWqtk
rtSt
k
r}|dtjkr
tjj|r
tj	|ntSXqWdS(s?check whether the given path is on a symlink-capable filesystemRIRJs
hg-checklink-iN(RRNtmktemptNamedTemporaryFileRR8RRtbasenameRR7RRtEEXISTR6tAttributeErrorRQtEIOtexists(RRRtfdRG((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	checklinks(	

%cC@sdS(sCheck that the base-relative path is a valid filename on this platform.
    Returns None if the path is ok, or a UI string describing the problem.N((RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytcheckosfilenamescC@sdS(N((Ra((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	setbinaryscC@s|S(N((RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytpconvertscC@s|S(N((RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	localpathscC@stjj||S(swReturns whether path1 and path2 refer to the same file. This is only
    guaranteed to work for files, not directories.(RRRtsamefile(tfpath1tfpath2((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRgscC@s.tj|}tj|}|j|jkS(syReturns whether fpath1 and fpath2 are on the same device. This is only
    guaranteed to work for files, not directories.(RRtst_dev(RhRitst1tst2((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt
samedevicescC@s
|jS(N(tlower(RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytnormcasestdarwincC@s0ytj|SWntk
r+t|SXdS(s
        Normalize a filename for OS X-compatible comparison:
        - escape-encode invalid characters
        - decompose to NFD
        - lowercase
        - omit ignored characters [200c-200f, 202a-202e, 206a-206f,feff]

        >>> normcase('UPPER')
        'upper'
        >>> normcase('Café')
        'cafe\xcc\x81'
        >>> normcase('É')
        'e\xcc\x81'
        >>> normcase('ʾ.JPG') # issue3918
        '%b8%ca%c3\xca\xbe%c8.jpg'
        N(Rt
asciilowertUnicodeDecodeErrortnormcasefallback(RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRos
cC@sy|jd}Wntk
rd}d}t|}xr||kry&tj||}|t|7}Wn/tk
rdt||}|d7}nX||7}q>W|jd}nXtjd|j	j
d}tj|S(Nsutf-8Ris%%%02XitNFD(tdecodeRrR
Rtgetutf8chart
ValueErrortordtunicodedatat	normalizeRntencodethfsignoreclean(RRtuR?tposR=tctenc((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRss"

!tcygwins/usr/bins/usr/libs	/cygdrivetreversecC@st|}|dks+|dtjkr8tj|SxgtD]_}|j|sZq?nt|}||krv|S||tjkr?|tj||Sq?Wtj|S(Ni(R
RtsepRtuppertcygwinmountpointsR (RRtpathlentmptmplen((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRo6s

cC@stS(N(RQ(RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRYPscC@stS(N(RQ(RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRbVscC@sjtjjdkrd|Stdkr;tjdjan|rRt|rR|Sd|jddSdS(NRs"%s"s[^a-zA-Z0-9._/+-]s'%s'Rs'\''(	RRRt_needsshellquoteREtretcompiletsearchtreplace(R?((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyR'ZscC@s|S(N((tcmd((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytquotecommandfstrcC@stj||S(N(Rtpopen(tcommandRF((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRiscC@sUtjjdkrtSytj|dtSWn tk
rP}|jtjkSXdS(s5return False if pid dead, True if running or not sureRiN(RRRRtkillRRtESRCH(tpidRG((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyttestpidlscC@s6|dkr td||fStd||fS(s}return a 2-tuple (desc, code) describing a subprocess status
    (codes from kill are negative - not os.system/wait encoding)isexited with status %dskilled by signal %d(R(tcode((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytexplainexitvscC@s|jtjkS(s;Return True if the stat object st is from the current user.(tst_uidRtgetuid(tst((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytisowner}scC@stjdkr|Sd}tj|kr5||Stjdkr]|tjjd|SxTtjjddjtj	D]1}|tjj||}|dk	r|SqWdS(sFind executable for command searching like which does.
    If command is a basename then PATH is searched for command.
    PATH isn't searched if command is an absolute or relative path.
    If command isn't found None is returned.RcS@s/tjj|r+tj|tjr+|SdS(s'Will return executable if existing fileN(RRRtisfiletaccesstX_OKRE(t
executable((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytfindexistings'tplan9s/bintPATHRN(RRRRRRtjointenvirontgetRtpathsepRE(RRRRR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytfindexes	
(cC@sdS(N((((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytsetsignalhandlerscc@stj}tj}x~|D]v}y.||}||jtkrLd}nWn:tk
r}|jtj	tj
fkrnd}nX|VqWdS(sqStat each file in files. Yield each stat, or None if a file does not
    exist or has a type we don't care about.N(RRR2tS_IFMTR.t_wantedkindsRERRRDtENOTDIR(tfilesRtgetkindtnfRterr((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	statfiless		


cC@s
tjS(sreturn name of current user(tgetpasstgetuser(((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRscC@sO|dkrtj}nytj|dSWntk
rJt|SXdS(siReturn the name of the user with the given uid.

    If uid is None, return the name of the current user.iN(RERRtpwdtgetpwuidtKeyErrortstr(tuid((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytusernames
cC@sO|dkrtj}nytj|dSWntk
rJt|SXdS(skReturn the name of the group with the given gid.

    If gid is None, return the name of the current group.iN(RERtgetgidtgrptgetgrgidRR(tgid((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	groupnames
cC@sttj|jS(skReturn the list of members of the group with the given
    name, KeyError if the group does not exist.
    (tlistRtgetgrnamtgr_mem(R((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytgroupmembersscC@s*tjtjttddB|d|S(NtP_DETACHi(RtspawnvptP_NOWAITtgetattr(R,((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt
spawndetachedscC@stjd S(Ni(Rtargv(((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytgethgcmdscC@s,yddl}ddl}xtjtjtjfD]}yy|j}Wntk
rcw4nXtj	|syw4nyBt
j||jd}|jd|d}|dkr|SWntk
rnXWq4t
k
rq4tk
r}|dtjkrqq4Xq4WWntk
r'nXdS(NisithiiPs(tarrayttermiosRtstderrtstdouttstdintfilenoR^Rtisattytfcntltioctlt
TIOCGWINSZRwRPRRtImportError(RRtdevRatarritwidthte((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	termwidths6



cC@stj|dS(N(Rtmkdir(RRt
notindexed((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytmakedirscC@szytj|Wn1tk
rD}|o8|jtjksEqEnXytjtjj|Wntk
runXdS(s.unlink and remove the directory if it is emptyN(RR7RRRDt
removedirsRRtdirname(R/t
ignoremissingR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt
unlinkpaths

cC@sdS(N(RE(tkeyRtscope((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	lookupregscC@sdS(sHide current shell window.

    Used to hide the window opened when starting asynchronous
    child process under Windows, unneeded on other systems.
    N((((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt
hidewindow
st	cachestatcB@s5eZdZdZejZdZdZRS(cC@stj||_dS(N(RR2(tselfRR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt__init__scC@st|jjS(N(tboolR2tst_ino(R((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt	cacheablescC@sy|jj|jjko|jj|jjko|jj|jjko|jj|jjko|jj|jjko|jj|jjko|jj|jjko|jj|jjko|jj	|jj	kSWnt
k
rtSXdS(N(R2R.RRjRRtst_gidtst_sizetst_mtimetst_ctimeR^RQ(Rtother((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt__eq__s
cC@s||kS(N((RR((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt__ne__.s(t__name__t
__module__RRtobjectt__hash__RR(((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyRs
				cC@sdS(N(RE(((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytexecutablepath1scC@s|otj|jS(s(check whether a stat result is a symlink(R2R3R.(R((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt
statislink4scC@s|o|jd@dkS(s1check whether a stat result is an executable filei@i(R.(R((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt
statisexec8scC@sUytj|||}Wntk
r5tnXtttt|gS(sblock until something happens on any file descriptor

    This is a generic helper that will check for any activity
    (read, write.  exception) and return the list of touched files.

    In unsupported cases, it will raise a NotImplementedError(tselectRwtNotImplementedErrortsortedRtsettsum(tfdstres((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytpoll<s


cC@stj|tj}|tjO}tj|tj|}z`g}xFtry'|j}|sePn|j|WqFtk
rPqFXqFWdj	|SWdtj|tj|XdS(s$Read all available data from a pipe.RN(
RtF_GETFLRt
O_NONBLOCKtF_SETFLRR5tappendRPR(tpipetflagstoldflagstchunksR?((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytreadpipeIs
	
	cC@s}tjj|\}}d}|rItjdtj}tj|n|j||rytj|tj	|ndS(s1Bind the UNIX domain socket to the specified patht.N(
RRRRRER4tO_DIRECTORYtchdirtbindtfchdirR6(tsockRRRR\tbakwdfd((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pytbindunixsocketas

(]t
__future__RRRRRRRRRR2RRNRyti18nRRRRR4t	posixfileRRtnormpathtsamestattlinkR	R^R7trenameRRQtexpandglobsR;RRRR$R-R0RCRERHRYRbRcRdReRfRgRmRot
normcasespecsRntnormcasespecRsRRRRRRR'RRRRRRRRtS_IFREGtS_IFLNKRRRRRRRRRRRRRRRRRRRR
R(((s3/usr/lib/python2.7/dist-packages/mercurial/posix.pyt<module>s


			
							$