Viewing 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
Back to Directory File Manager