| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python312/Lib/lib2to3/fixes/__pycache__/ |
Upload File : |
�
���g�
� �d � d Z ddlZddlmZ ddlmZmZmZm Z d� Z
G d� dej � Zy)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)�Call�Name�String�touch_importc � � � � fd�}|S )Nc � �� �| _ | S �N)�
invocation)�f�ss ��/C:\Python312\\Lib\lib2to3\fixes\fix_operator.py�deczinvocation.<locals>.dec s �� ������ � )r
r s ` r r r s �� �� �Jr c � � e Zd ZdZdZdZdZd eee�� z Zd� Z e
d� d � � Z e
d
� d� � Z e
d� d
� � Z
e
d� d� � Z e
d� d� � Z e
d� d� � Z e
d� d� � Zd� Zd� Zd� Zy)�FixOperatorT�prez�
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 > >
)�methods�objc �>