AlkantarClanX12

Your IP : 3.136.26.156


Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_nonzero.cpython-312.pyc

�

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