| Server IP : 193.86.120.172 / Your IP : 216.73.216.67 Web Server : Apache/2.4.63 (Unix) System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64 User : kubec ( 1026) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib64/python3.8/lib2to3/fixes/__pycache__/ |
Upload File : |
U
4�<�!�� @ s2 d Z ddlmZ ddlmZ G dd� dej�ZdS )z*Fixer for __nonzero__ -> __bool__ methods.� )�
fixer_base)�Namec @ s e Zd ZdZdZdd� ZdS )�
FixNonzeroTz�
classdef< 'class' any+ ':'
suite< any*
funcdef< 'def' name='__nonzero__'
parameters< '(' NAME ')' > any+ >
any* > >
c C s$ |d }t d|jd�}|�|� d S )N�name�__bool__)�prefix)r r �replace)�selfZnode�resultsr �new� r �D/tmp/_install_python3/usr/lib/python3.8/lib2to3/fixes/fix_nonzero.py� transform s zFixNonzero.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr r r r r
r s r N)�__doc__� r Z
fixer_utilr ZBaseFixr r r r r
�<module> s