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/registrar.pyc
ó
ÛXc@@sÄddlmZddlmZmZdefd„ƒYZdefd„ƒYZdefd	„ƒYZd
efd„ƒYZ	de	fd
„ƒYZ
de	fd„ƒYZde	fd„ƒYZdS(i(tabsolute_importi(tpycompattutilt_funcregistrarbasecB@sVeZdZdd„Zd„Zd„Zd„Zd„ZdZ	d„Z
d„ZRS(	s­Base of decorator to register a fuction for specific purpose

    This decorator stores decorated functions into own dict 'table'.

    The least derived class can be defined by overriding 'formatdoc',
    for example::

        class keyword(_funcregistrarbase):
            _docformat = ":%s: %s"

    This should be used as below:

        keyword = registrar.keyword()

        @keyword('bar')
        def barfunc(*args, **kwargs):
            '''Explanation of bar keyword ....
            '''
            pass

    In this case:

    - 'barfunc' is stored as 'bar' in '_table' of an instance 'keyword' above
    - 'barfunc.__doc__' becomes ":bar: Explanation of bar keyword"
    cC@s%|dkri|_n	||_dS(N(tNonet_table(tselfttable((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyt__init__)sc@s‡‡‡‡fd†S(Nc@sˆj|ˆˆˆŽS(N(t_doregister(tfunc(targstdecltkwargsR(s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyt<lambda>0s((RRRR
((RRR
Rs7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyt__call__/scO@s‚|j|ƒ}|jr[tj|dƒr[|jjƒ}||_|j||ƒ|_n||j|<|j||||Ž|S(Nt_origdoc(	t_getnamet__doc__RtsafehasattrtstripRt
_formatdocRt_extrasetup(RR
RRR
tnametdoc((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR	2s	
cC@s+|jdƒ}|dkr#|| S|SdS(sIParse function declaration and return the name of function in it
        t(iN(tfind(RRti((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyt_parsefuncdecl?scC@s|S(s°Return the name of the registered function from decl

        Derived class should override this, if it allows more
        descriptive 'decl' string than just a name.
        ((RR((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyRHscC@s|j||fS(s†Return formatted document of the registered function for help

        'doc' is '__doc__.strip()' of the registered function.
        (t
_docformat(RRR((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyRRscC@sdS(s>Execute exra setup for registered function, if needed
        N((RRR
((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyRYsN(t__name__t
__module__RRRRR	RRRRR(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyRs		
				trevsetpredicatecB@s5eZdZejZejdƒZe	e	d„Z
RS(s–Decorator to register revset predicate

    Usage::

        revsetpredicate = registrar.revsetpredicate()

        @revsetpredicate('mypredicate(arg1, arg2[, arg3])')
        def mypredicatefunc(repo, subset, x):
            '''Explanation of this revset predicate ....
            '''
            pass

    The first string argument is used also in online help.

    Optional argument 'safe' indicates whether a predicate is safe for
    DoS attack (False by default).

    Optional argument 'takeorder' indicates whether a predicate function
    takes ordering policy as the last argument.

    'revsetpredicate' instance in example above can be used to
    decorate multiple functions.

    Decorated functions are registered automatically at loading
    extension, if an instance named as 'revsetpredicate' is used for
    decorating in extension.

    Otherwise, explicit 'revset.loadpredicate()' is needed.
    s
``%s``
    %scC@s||_||_dS(N(t_safet
_takeorder(RRR
tsafet	takeorder((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyRs	(RRRRRRRtsysstrRtFalseR(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR ^s	tfilesetpredicatecB@s5eZdZejZejdƒZe	e	d„Z
RS(s¿Decorator to register fileset predicate

    Usage::

        filesetpredicate = registrar.filesetpredicate()

        @filesetpredicate('mypredicate()')
        def mypredicatefunc(mctx, x):
            '''Explanation of this fileset predicate ....
            '''
            pass

    The first string argument is used also in online help.

    Optional argument 'callstatus' indicates whether a predicate
     implies 'matchctx.status()' at runtime or not (False, by
     default).

    Optional argument 'callexisting' indicates whether a predicate
    implies 'matchctx.existing()' at runtime or not (False, by
    default).

    'filesetpredicate' instance in example above can be used to
    decorate multiple functions.

    Decorated functions are registered automatically at loading
    extension, if an instance named as 'filesetpredicate' is used for
    decorating in extension.

    Otherwise, explicit 'fileset.loadpredicate()' is needed.
    s
``%s``
    %scC@s||_||_dS(N(t_callstatust
_callexisting(RRR
t
callstatustcallexisting((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR¦s	(RRRRRRRR%RR&R(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR'ƒs	t_templateregistrarbasecB@seZdZejdƒZRS(sEBase of decorator to register functions as template specific one
    s:%s: %s(RRRRR%R(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR,ªsttemplatekeywordcB@seZdZRS(sµDecorator to register template keyword

    Usage::

        templaetkeyword = registrar.templatekeyword()

        @templatekeyword('mykeyword')
        def mykeywordfunc(repo, ctx, templ, cache, revcache, **args):
            '''Explanation of this template keyword ....
            '''
            pass

    The first string argument is used also in online help.

    'templatekeyword' instance in example above can be used to
    decorate multiple functions.

    Decorated functions are registered automatically at loading
    extension, if an instance named as 'templatekeyword' is used for
    decorating in extension.

    Otherwise, explicit 'templatekw.loadkeyword()' is needed.
    (RRR(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR-¯sttemplatefiltercB@seZdZRS(s‹Decorator to register template filer

    Usage::

        templatefilter = registrar.templatefilter()

        @templatefilter('myfilter')
        def myfilterfunc(text):
            '''Explanation of this template filter ....
            '''
            pass

    The first string argument is used also in online help.

    'templatefilter' instance in example above can be used to
    decorate multiple functions.

    Decorated functions are registered automatically at loading
    extension, if an instance named as 'templatefilter' is used for
    decorating in extension.

    Otherwise, explicit 'templatefilters.loadkeyword()' is needed.
    (RRR(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR.ÈsttemplatefunccB@seZdZejZRS(s£Decorator to register template function

    Usage::

        templatefunc = registrar.templatefunc()

        @templatefunc('myfunc(arg1, arg2[, arg3])')
        def myfuncfunc(context, mapping, args):
            '''Explanation of this template function ....
            '''
            pass

    The first string argument is used also in online help.

    'templatefunc' instance in example above can be used to
    decorate multiple functions.

    Decorated functions are registered automatically at loading
    extension, if an instance named as 'templatefunc' is used for
    decorating in extension.

    Otherwise, explicit 'templater.loadfunction()' is needed.
    (RRRRRR(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyR/ásN(
t
__future__RtRRtobjectRR R'R,R-R.R/(((s7/usr/lib/python2.7/dist-packages/mercurial/registrar.pyt<module>sO%'