U ifO@s2dZddlmZddlmZGdddejZdS)z*Fixer for __nonzero__ -> __bool__ methods.) fixer_base)Namec@seZdZdZdZddZdS) FixNonzeroTz classdef< 'class' any+ ':' suite< any* funcdef< 'def' name='__nonzero__' parameters< '(' NAME ')' > any+ > any* > > cCs$|d}td|jd}||dS)Nname__bool__)prefix)rrreplace)selfZnodeZresultsrnewr >/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_nonzero.py transformszFixNonzero.transformN)__name__ __module__ __qualname__Z BM_compatibleZPATTERNr r r r r rsrN)__doc__rZ fixer_utilrZBaseFixrr r r r s