o ,º]ˆã@s>dZddlmZddlmZmZdd„ZGdd„dejƒZdS) z? Fixer for division: from __future__ import division if needed é)Ú fixer_base)ÚtokenÚ future_importcCs,tj}|j|ko|jj|k o|jj|k S)zw __future__.division redefines the meaning of a single slash for division, so we match that and only that. )rÚSLASHÚtypeÚ next_siblingÚ prev_sibling)ÚnodeÚslash©r úB/usr/lib/python3/dist-packages/libpasteurize/fixes/fix_division.pyÚmatch_divisions ÿr c@s eZdZdZdd„Zdd„ZdS)Ú FixDivisionécCst|ƒS)z¦ Since the tree needs to be fixed once and only once if and only if it matches, then we can start discarding matches after we make the first. )r )Úselfr r r r ÚmatchszFixDivision.matchcCstd|ƒdS)NÚdivision)r)rr Úresultsr r r Ú transformszFixDivision.transformN)Ú__name__Ú __module__Ú __qualname__Ú run_orderrrr r r r rs rN) Ú__doc__Úlib2to3rÚlibfuturize.fixer_utilrrr ÚBaseFixrr r r r Ús