HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/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