⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
lib2to3
/
fixes
/
__pycache__
/
View File Name :
fix_operator.cpython-310.pyc
o bcb @ sN d Z ddlZddlmZ ddlmZmZmZm Z dd Z G dd dejZdS ) a Fixer 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)CallNameStringtouch_importc s fdd}|S )Nc s | _ | S N) invocation)fs 1/usr/lib/python3.10/lib2to3/fixes/fix_operator.pydec s zinvocation.
.decr )r r r r r r s r c @ s e Zd ZdZdZdZdZdeeed Zdd Z e d d d Ze dd d Ze ddd Z e ddd Ze ddd Ze ddd Ze ddd Zdd Zd d! Zd"d# Zd$S )%FixOperatorTprez 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 > > )methodsobjc C s" | ||}|d ur|||S d S r ) _check_method)selfnoderesultsmethodr r r transform+ s zFixOperator.transformzoperator.contains(%s)c C | ||dS )Ncontains_handle_renamer r r r r r _sequenceIncludes0 zFixOperator._sequenceIncludeszcallable(%s)c C s" |d }t td| g|jdS )Nr callableprefix)r r cloner" )r r r r r r r _isCallable4 s zFixOperator._isCallablezoperator.mul(%s)c C r )Nmulr r r r r _repeat9 r zFixOperator._repeatzoperator.imul(%s)c C r )Nimulr r r r r _irepeat= r zFixOperator._irepeatz(isinstance(%s, collections.abc.Sequence)c C | ||ddS )Ncollections.abcSequence_handle_type2abcr r r r _isSequenceTypeA zFixOperator._isSequenceTypez'isinstance(%s, collections.abc.Mapping)c C r) )Nr* Mappingr, r r r r _isMappingTypeE r/ zFixOperator._isMappingTypezisinstance(%s, numbers.Number)c C r) )NnumbersNumberr, r r r r _isNumberTypeI r/ zFixOperator._isNumberTypec C s |d d }||_ | d S )Nr r )valuechanged)r r r namer r r r r M s zFixOperator._handle_renamec C sF t d || |d }| tdd||g g}ttd||jdS )Nr z, . isinstancer! )r r# r joinr r r" )r r r moduleabcr argsr r r r- R s zFixOperator._handle_type2abcc C s^ t | d|d d j }t|tjjr-d|v r|S t|d f}|j| }| |d| d S )N_r r r; r zYou should use '%s' here.) getattrr5 r9 collectionsr<