Your IP : 13.58.232.94


Current Path : /opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/fix_nonzero.cpython-34.pyc

�
i fU�@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/python34/lib64/python3.4/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

?>