Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/lib2to3/fixes/fix_nonzero.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sIdZddlmZddlmZmZdejfd��YZdS(s*Fixer for __nonzero__ -> __bool__ methods.i(t
fixer_base(tNametsymst
FixNonzerocBseZeZdZd�ZRS(s�
    classdef< 'class' any+ ':'
              suite< any*
                     funcdef< 'def' name='__nonzero__'
                              parameters< '(' NAME ')' > any+ >
                     any* > >
    cCs0|d}tdd|j�}|j|�dS(Ntnameu__bool__tprefix(RRtreplace(tselftnodetresultsRtnew((s//sys/lib/python2.7/lib2to3/fixes/fix_nonzero.pyt	transforms
(t__name__t
__module__tTruet
BM_compatibletPATTERNR(((s//sys/lib/python2.7/lib2to3/fixes/fix_nonzero.pyRsN(t__doc__tRt
fixer_utilRRtBaseFixR(((s//sys/lib/python2.7/lib2to3/fixes/fix_nonzero.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].