Your IP : 3.141.45.90
�
c��fO � �H � d Z ddlmZ ddlmZ G d� dej � � ZdS )z*Fixer for __nonzero__ -> __bool__ methods.� )�
fixer_base)�Namec � � e Zd ZdZdZd� ZdS )�
FixNonzeroTz�
classdef< 'class' any+ ':'
suite< any*
funcdef< 'def' name='__nonzero__'
parameters< '(' NAME ')' > any+ >
any* > >
c �l � |d }t d|j �� � }|� |� � d S )N�name�__bool__)�prefix)r r
�replace)�self�node�resultsr �news �@/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_nonzero.py� transformzFixNonzero.transform s7 � ��v����:�d�k�2�2�2�����S������ N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr � r r r r s/ � � � � � ��M��G�� � � � r r N)�__doc__� r �
fixer_utilr �BaseFixr r r r �<module>r sh �� 0� 0� � � � � � � � � � � � �
�
�
�
�
��#�
�
�
�
�
r