
    4pf                     R    d Z ddlmZ ddlmZmZ d Z G d dej                  ZdS )z?
Fixer for division: from __future__ import division if needed
    )
fixer_base)tokenfuture_importc                 t    t           j        }| j        |k    o!| j        j        |k     o| 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     `/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/libpasteurize/fixes/fix_division.pymatch_divisionr      sH    
 KE9 Fd&7&<&E"E F&*&7&<&E"EF    c                       e Zd ZdZd Zd ZdS )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|           d S )Ndivision)r   )r   r   resultss      r   	transformzFixDivision.transform   s    k4(((((r   N)__name__
__module____qualname__	run_orderr   r    r   r   r   r      s7        I$ $ $) ) ) ) )r   r   N)	__doc__lib2to3r   libfuturize.fixer_utilr   r   r   BaseFixr   r   r   r   <module>r#      s           7 7 7 7 7 7 7 7F F F) ) ) ) )*$ ) ) ) ) )r   