Hacked By AnonymousFox
��YfU � @ sI d Z d d l m Z d d l m Z m Z Gd d � d e j � Z d S)z*Fixer for __nonzero__ -> __bool__ methods.� )�
fixer_base)�Name�symsc @ s( e Z d Z d Z d Z d d � Z d S)�
FixNonzeroTz�
classdef< 'class' any+ ':'
suite< any*
funcdef< 'def' name='__nonzero__'
parameters< '(' NAME ')' > any+ >
any* > >
c C s0 | d } t d d | j �} | j | � d S)N�name�__bool__�prefix)r r �replace)�selfZnodeZresultsr �new� r �>/opt/alt/python35/lib64/python3.5/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 r ZBaseFixr r r r r
�<module> s
Hacked By AnonymousFox1.0, Coded By AnonymousFox