HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-31-18-78 6.17.0-1017-aws #17~24.04.1-Ubuntu SMP Tue May 26 21:09:53 UTC 2026 aarch64
User: ubuntu (1000)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3.12/lib2to3/fixes/__pycache__/fix_nonzero.cpython-312.pyc
�

�3fO��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     �0/usr/lib/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