AlkantarClanX12

Your IP : 18.116.14.12


Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_nonzero.cpython-311.opt-1.pyc

�

c��fO��H�dZddlmZddlmZGd�dej��ZdS)z*Fixer for __nonzero__ -> __bool__ methods.�)�
fixer_base)�Namec��eZdZdZdZd�ZdS)�
FixNonzeroTz�
    classdef< 'class' any+ ':'
              suite< any*
                     funcdef< 'def' name='__nonzero__'
                              parameters< '(' NAME ')' > any+ >
                     any* > >
    c�l�|d}td|j���}|�|��dS)N�name�__bool__)�prefix)rr
�replace)�self�node�resultsr�news     �@/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_nonzero.py�	transformzFixNonzero.transforms7���v����:�d�k�2�2�2�����S������N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr�rrrrs/�������M��G�����rrN)�__doc__�r�
fixer_utilr�BaseFixrrrr�<module>rsh��0�0�������������
�
�
�
�
��#�
�
�
�
�
r