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/python3.7/lib2to3/fixes/__pycache__/fix_has_key.cpython-37.pyc
B

5a|@sBdZddlmZddlmZddlmZmZGdddejZdS)a&Fixer for has_key().

Calls to .has_key() methods are expressed in terms of the 'in'
operator:

    d.has_key(k) -> k in d

CAVEATS:
1) While the primary target of this fixer is dict.has_key(), the
   fixer will change any has_key() method call, regardless of its
   class.

2) Cases like this will not be converted:

    m = d.has_key
    if m(k):
        ...

   Only *calls* to has_key() are converted. While it is possible to
   convert the above to something like

    m = d.__contains__
    if m(k):
        ...

   this is currently not done.
)pytree)
fixer_base)Nameparenthesizec@seZdZdZdZddZdS)	FixHasKeyTa
    anchor=power<
        before=any+
        trailer< '.' 'has_key' >
        trailer<
            '('
            ( not(arglist | argument<any '=' any>) arg=any
            | arglist<(not argument<any '=' any>) arg=any ','>
            )
            ')'
        >
        after=any*
    >
    |
    negation=not_test<
        'not'
        anchor=power<
            before=any+
            trailer< '.' 'has_key' >
            trailer<
                '('
                ( not(arglist | argument<any '=' any>) arg=any
                | arglist<(not argument<any '=' any>) arg=any ','>
                )
                ')'
            >
        >
    >
    c

Cs|st|j}|jj|jkr.|j|jr.dS|d}|d}|j}dd|dD}|d	}|d}	|	rdd|	D}	|j|j
|j|j|j|j
|j|jfkrt|}t|d	kr|d
}nt|j|}d|_tddd
}
|rtddd
}t|j||
f}
t|j
||
|f}|	rBt|}t|j|ft|	}|jj|j
|j|j|j|j|j|j|j|jf	kr|t|}||_|S)NnegationanchorcSsg|]}|qS)clone).0nr	r	//usr/lib/python3.7/lib2to3/fixes/fix_has_key.py
<listcomp>Rsz'FixHasKey.transform.<locals>.<listcomp>beforeargaftercSsg|]}|qSr	)r
)rrr	r	r
rVs in)prefixnot)AssertionErrorsymsparenttypeZnot_testpatternmatchgetrr
Z
comparisonZand_testZor_testZtestZlambdefZargumentrlenrZNodeZpowerrZcomp_optupleexprZxor_exprZand_exprZ
shift_exprZ
arith_exprZtermZfactor)
selfZnodeZresultsrrrrrrrZn_opZn_notnewr	r	r
	transformGsF


zFixHasKey.transformN)__name__
__module____qualname__Z
BM_compatibleZPATTERNr$r	r	r	r
r&srN)	__doc__rrZ
fixer_utilrrZBaseFixrr	r	r	r
<module>s