Your IP : 18.189.143.150


Current Path : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_nonzero.cpython-35.pyc



��YfU�@sIdZddlmZddlmZmZGdd�dej�ZdS)z*Fixer for __nonzero__ -> __bool__ methods.�)�
fixer_base)�Name�symsc@s(eZdZdZdZdd�ZdS)�
FixNonzeroTz�
    classdef< 'class' any+ ':'
              suite< any*
                     funcdef< 'def' name='__nonzero__'
                              parameters< '(' NAME ')' > any+ >
                     any* > >
    cCs0|d}tdd|j�}|j|�dS)N�name�__bool__�prefix)rr�replace)�selfZnodeZresultsr�new�r�>/opt/alt/python35/lib64/python3.5/lib2to3/fixes/fix_nonzero.py�	transforms
zFixNonzero.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrrrrr
rsrN)�__doc__�rZ
fixer_utilrrZBaseFixrrrrr
�<module>s

?>