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_operator.cpython-37.pyc
B

5ab
@sNdZddlZddlmZddlmZmZmZm	Z	ddZ
GdddejZdS)	aFixer for operator functions.

operator.isCallable(obj)       -> callable(obj)
operator.sequenceIncludes(obj) -> operator.contains(obj)
operator.isSequenceType(obj)   -> isinstance(obj, collections.abc.Sequence)
operator.isMappingType(obj)    -> isinstance(obj, collections.abc.Mapping)
operator.isNumberType(obj)     -> isinstance(obj, numbers.Number)
operator.repeat(obj, n)        -> operator.mul(obj, n)
operator.irepeat(obj, n)       -> operator.imul(obj, n)
N)
fixer_base)CallNameStringtouch_importcsfdd}|S)Ncs
|_|S)N)
invocation)f)s0/usr/lib/python3.7/lib2to3/fixes/fix_operator.pydecszinvocation.<locals>.decr
)r	rr
)r	rrsrc@seZdZdZdZdZdZdeeedZddZ	e
d	d
dZe
dd
dZe
dddZ
e
dddZe
dddZe
dddZe
dddZddZd d!Zd"d#Zd$S)%FixOperatorTZprez
              method=('isCallable'|'sequenceIncludes'
                     |'isSequenceType'|'isMappingType'|'isNumberType'
                     |'repeat'|'irepeat')
              z'(' obj=any ')'z
              power< module='operator'
                trailer< '.' %(methods)s > trailer< %(obj)s > >
              |
              power< %(methods)s trailer< %(obj)s > >
              )methodsobjcCs"|||}|dk	r|||SdS)N)
_check_method)selfnoderesultsmethodr
r
r	transform+szFixOperator.transformzoperator.contains(%s)cCs|||dS)Ncontains)_handle_rename)rrrr
r
r_sequenceIncludes0szFixOperator._sequenceIncludeszcallable(%s)cCs"|d}ttd|g|jdS)Nrcallable)prefix)rrcloner)rrrrr
r
r_isCallable4szFixOperator._isCallablezoperator.mul(%s)cCs|||dS)Nmul)r)rrrr
r
r_repeat9szFixOperator._repeatzoperator.imul(%s)cCs|||dS)Nimul)r)rrrr
r
r_irepeat=szFixOperator._irepeatz(isinstance(%s, collections.abc.Sequence)cCs|||ddS)Nzcollections.abcSequence)_handle_type2abc)rrrr
r
r_isSequenceTypeAszFixOperator._isSequenceTypez'isinstance(%s, collections.abc.Mapping)cCs|||ddS)Nzcollections.abcMapping)r")rrrr
r
r_isMappingTypeEszFixOperator._isMappingTypezisinstance(%s, numbers.Number)cCs|||ddS)NZnumbersNumber)r")rrrr
r
r
_isNumberTypeIszFixOperator._isNumberTypecCs|dd}||_|dS)Nrr)valueZchanged)rrrnamerr
r
rrMszFixOperator._handle_renamecCsFtd|||d}|tdd||gg}ttd||jdS)Nrz, .
isinstance)r)rrrjoinrrr)rrrmoduleabcrargsr
r
rr"RszFixOperator._handle_type2abccCs^t|d|ddj}t|tjjrZd|kr2|St|df}|j|}||d|dS)N_rrr-rzYou should use '%s' here.)	getattrr(r+collectionsr.CallablestrrZwarning)rrrrsubZinvocation_strr
r
rrXs
zFixOperator._check_methodN)__name__
__module____qualname__Z
BM_compatibleorderrrdictZPATTERNrrrrrr r#r%r'rr"rr
r
r
rr
s r
)
__doc__Zcollections.abcr2Zlib2to3rZlib2to3.fixer_utilrrrrrZBaseFixr
r
r
r
r<module>
s