HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //opt/alt/python-internal/lib/python3.11/lib2to3/fixes/__pycache__/fix_nonzero.cpython-311.pyc
�

8\cd�Y*��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     �D/opt/alt/python-internal/lib/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