
    Fwg                     T    d Z ddlmZ ddlmZmZ d Z G d dej                        Zy)z?
Fixer for division: from __future__ import division if needed
    )
fixer_base)tokenfuture_importc                     t         j                  }| j                  |k(  xr6 | j                  j                  |k(   xr | j                  j                  |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slashs     W/var/www/horilla/myenv/lib/python3.12/site-packages/libpasteurize/fixes/fix_division.pymatch_divisionr      sX    
 KKE99 Fd&7&7&<&<&E"E F&*&7&7&<&<&E"EF    c                       e Zd ZdZd Zd Zy)FixDivision   c                     t        |      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   s     r   matchzFixDivision.match   s    
 d##r   c                     t        d|       y )Ndivision)r   )r   r   resultss      r   	transformzFixDivision.transform   s    k4(r   N)__name__
__module____qualname__	run_orderr   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   