Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_nonzero.cpython-312.opt-1.pyc |
� �Q�fO � �J � d Z ddlmZ ddlmZ G d� dej � Zy)z*Fixer for __nonzero__ -> __bool__ methods.� )� fixer_base)�Namec � � e Zd ZdZdZd� Zy)� FixNonzeroTz� classdef< 'class' any+ ':' suite< any* funcdef< 'def' name='__nonzero__' parameters< '(' NAME ')' > any+ > any* > > c �^ � |d }t d|j �� }|j |� y )N�name�__bool__)�prefix)r r �replace)�self�node�resultsr �news �@/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_nonzero.py� transformzFixNonzero.transform s'