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/__init__.pyc
ó
ÛXc@@sˆddlmZddlZddlZddlZddlZddlmZgZejZ	e
ddddd	d
gƒZdefd„ƒYZ
ejdd
kr0ddlmZddlZddlZddlZddlZdejjfd„ƒYZd„ZdZdejjfd„ƒYZnejdd
krLeZne
Zed„ejDƒƒs„ejjdeƒƒndS(i(tabsolute_importNi(tpolicysmercurial.base85smercurial.bdiffsmercurial.diffhelperssmercurial.mpatchsmercurial.osutilsmercurial.parserst
hgimportercB@s#eZdZdd„Zd„ZRS(sAObject that conforms to import hook interface defined in PEP-302.cC@s|tkr|SdS(N(t_dualmodulestNone(tselftnametpath((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pytfind_module$sc	@sætjj|dƒ}|r|Stjd}t|ddƒ‰tˆtjƒrî‡fd†}y:tt	j
kr}tƒ‚n|dƒ}|j|ƒ}WnAtk
rÜtdkr»‚n|ddƒ}|j|ƒ}nX|tj|<|S|j
dƒd}y^tt	j
krtƒ‚ntj||jƒ}|ddtjkr^td	|ƒ‚nWnatk
rÂtdkr‚nd
dlm}tj||jƒ}|sÃtd|ƒ‚qÃnXtj||Œ}|tj|<|S(
Nt	mercurialt
__loader__c@sFtjjˆj|Œ}tjj|ƒ}|sBtj|ƒ}n|S(s8Obtain a zipimporter for a directory under the main zip.(	tosRtjointarchivetsystpath_importer_cachetgett	zipimporttzipimporter(tpathsRtzl(tloader(s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyt	ziploader5s
tctpuret.iÿÿÿÿis4.py version of %s found where C version should existi(Rs"could not find mercurial module %s(RtmodulesRRtgetattrt
isinstanceRRtmodulepolicyRt	policynoctImportErrortload_moduletsplittimpRt__path__tC_EXTENSIONtR(	RRtmodR	RRtstemtmodinfoR((Rs6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR *sL


	

N(t__name__t
__module__t__doc__RRR (((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR"si(RthgpathentryfindercB@seZdZdd„ZRS(s8A sys.meta_path finder that uses a custom module loader.cC@s|jd
ƒsdS|tkry|jdƒd}d|}t}t|ƒdksZt‚tjj	|dd	ƒg}nd}xEt
jD]:}||kr¡q‰n|j||d
|ƒ}|r‰Pq‰q‰W|sÑdS|jdƒrû|j
jddƒ|_
nt|j
|jƒ|_|S(Ns
mercurial.shgext.s	hgext3rd.Riÿÿÿÿsmercurial.pure.%siiRttargetsmercurial.pure.s.pure.(s
mercurial.shgext.s	hgext3rd.(t
startswithRRR!RtlentAssertionErrorRRRRt	meta_patht	find_specRtreplacethgloadertoriginR(RtfullnameRR-R'tspectfinder((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR2ˆs*
N(R)R*R+RR2(((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR,†sc
#@sat}‡fd†‰‡‡‡fd†}‡fd†}x!tˆƒD]\‰}|jtjkrÄ|j}|dd!d"kr‹|VqFn|dd#kr¦|VqFn|jd
d|jƒVqFn|jtjkrB|jdkrBtd
„ˆˆdˆ!DƒƒrBgˆˆdˆ!D]}|j^qddgkrBt	}n|jtj
kr|rt}|dkrw|VqFn|j\}}	d}
x}tjt
j|
ƒjƒD]`}|jtjtjfkrÏq¨n|jd||	|jdfd||	|jdfƒVq¨WqFn|jtjkrTˆˆddƒrT|j}|d$krˆˆˆddƒrˆ|dƒ}|d!k	rQ||ƒqQqT|d%kr戈ddƒræx§tdƒD]+}
||
ƒ}|d!k	r´||ƒq´q´WqT|dkr.ˆˆddƒr.|dƒ}|d!k	rQ||ƒqQqT|dkrT|jd
d ƒVqFqTn|VqFWd!S(&sTransform a stream of tokens from raw to Python 3.

        It is called by the custom module loading machinery to rewrite
        source/tokens between source decoding and compilation.

        Returns a generator of possibly rewritten tokens.

        The input token list may be mutated as part of processing. However,
        its changes do not necessarily match the output token stream.

        REMEMBER TO CHANGE ``BYTECODEHEADER`` WHEN CHANGING THIS FUNCTION
        OR CACHED FILES WON'T GET INVALIDATED PROPERLY.
        c@sDy+ˆ|jtjko)ˆ|j|kSWntk
r?tSXdS(s;Assert that tokens[j] is an OP with one of the given valuesN(ttypettokentOPtstringt
IndexErrortFalse(tjto(ttokens(s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyt_isop¿s+
c@sºd}x­tˆdtˆƒƒD]’}ˆ|dddƒrX|d8}|dkr²dSq |dkrh|Sˆ|ddd	ƒrŠ|d7}q ˆ|d
ƒr |dkr |d8}q q WdS(sâFind arg n of a call expression (start at 0)

            Returns index of the first token of that argument, or None if
            there is not that many arguments.

            Assumes that token[i + 1] is '('.

            iit)t]t}it(t[t{t,N(trangeR/R(tntnestedR?(RBtiRA(s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyt_findargnofcallÆs	 

c@sRˆ|}|jtjkrN|jjdƒrN|jdd|jƒˆ|<ndS(s8Make sure the token at j is a unicode string

            This rewrites a string token to include the unicode literal prefix
            so the string transformer won't add the byte prefix.

            Ignores tokens that are not strings. Assumes bounds checking has
            already been done.

            t't"R<su%sN(RORP(R9R:tSTRINGR<R.t_replace(R?tst(RA(s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyt_ensureunicodeàs

$iis'''s"""RORPR<sb%stimportcs@s!|]}|jtjkVqdS(N(R9R:tNAME(t.0tu((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pys	<genexpr>sitfromt
__future__smercurial.pycompatsL; from mercurial.pycompat import delattr, getattr, hasattr, setattr, xrange
tstartitendRFRtsetattrthasattrtsafehasattrRtencodetdecodetopent	iteritemstitemsN(s'''s"""(RORP(RR]R^R_(R`Ra(R>t	enumerateR9R:RQR<RRRVtalltTruetNEWLINER[ttokenizetiotBytesIOtreadlinetENCODINGt	ENDMARKERR\RRJ(RAR6t
futureimplineRNRTtttsRXtrRtltfntarg1idxtargntargidx((RBRMRAs6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyt
replacetokens­sh	
!!3	"	4%	 	sHGR4cB@s)eZdZd„Zd„Zd„ZRS(sCustom module loader that transforms source code.

        When the source code is converted to a code object, we transform
        certain patterns to be Python 3 compatible. This allows us to write code
        that is natively Python 2 and compatible with Python 3 without
        making the code excessively ugly.

        We do this by transforming the token stream between parse and compile.

        Implementing transformations invalidates caching assumptions made
        by the built-in importer. The built-in importer stores a header on
        saved bytecode files indicating the Python/bytecode version. If the
        version changes, the cached bytecode is ignored. The Mercurial
        transformations could change at any time. This means we need to check
        that cached bytecode was generated with the current transformation
        code or there could be a mismatch between cached bytecode and what
        would be generated from this class.

        We supplement the bytecode caching layer by wrapping ``get_data``
        and ``set_data``. These functions are called when the
        ``SourceFileLoader`` retrieves and saves bytecode cache files,
        respectively. We simply add an additional header on the file. As
        long as the version in this file is changed when semantics change,
        cached bytecode should be invalidated when transformations change.

        The added header has the form ``HG<VERSION>``. That is a literal
        ``HG`` with 2 binary bytes indicating the transformation version.
        cC@sƒtt|ƒj|ƒ}|jttjjƒƒs7|S|dd!dkrYtdƒ‚n|dd!t	kr{tdƒ‚n|dS(NiitHGsno hg headerishg header version mismatch(
tsuperR4tget_datatendswithttuplet	importlibt	machinerytBYTECODE_SUFFIXEStOSErrortBYTECODEHEADER(RRtdata((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR{iscO@sG|jttjjƒƒr(t|}ntt|ƒj||||ŽS(N(	R|R}R~RR€R‚RzR4tset_data(RRRƒtargstkwargs((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR„{s
cC@s[tj|ƒ}tj|jƒ}tjtt|ƒ|jƒƒ}tt	|ƒj
||ƒS(s0Perform token transformation before compilation.(RjRkRiRlt
untokenizeRxtlistRRzR4tsource_to_code(RRƒRtbufRA((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR‰s!(R)R*R+R{R„R‰(((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyR4Ls		cc@s|]}t|tƒVqdS(N(Rt_importercls(RWtx((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pys	<genexpr>”s( RZRR"RRRR%Rt__all__RtsetRtobjectRtversion_infoRR~RjR:RitabctMetaPathFinderR,RxR‚RtSourceFileLoaderR4R‹tanyR1tinsert(((s6/usr/lib/python2.7/dist-packages/mercurial/__init__.pyt<module>s<	]'	D