
    9i                     T    S r SSKJr  SSKJrJr  S r " S S\R                  5      rg)z?
Fixer for division: from __future__ import division if needed
    )
fixer_base)tokenfuture_importc                     [         R                  nU R                  U:H  =(       a;    U R                  R                  U:X  + =(       a    U R                  R                  U:X  + $ )zk
__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slashs     `/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/libpasteurize/fixes/fix_division.pymatch_divisionr      sR    
 KKE99 Fd&7&7&<&<"E F&*&7&7&<&<"EF    c                   $    \ rS rSrSrS rS rSrg)FixDivision      c                     [        U5      $ )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   s     r   matchFixDivision.match   s    
 d##r   c                     [        SU5        g )Ndivision)r   )r   r   resultss      r   	transformFixDivision.transform   s    k4(r    N)__name__
__module____qualname____firstlineno__	run_orderr   r   __static_attributes__r   r   r   r   r      s    I$)r   r   N)	__doc__lib2to3r   libfuturize.fixer_utilr   r   r   BaseFixr   r   r   r   <module>r(      s*     7F)*$$ )r   