관리-도구
편집 파일: fix_division_safe.cpython-311.pyc
� �܋f/ � � � d Z ddlZddlmZmZmZ ddlmZ ddlm Z m Z mZmZ d� Z ej d� � Zd� Zd � Z G d � dej � � ZdS )aL For the ``future`` package. Adds this import line: from __future__ import division at the top and changes any old-style divisions to be calls to past.utils.old_div so the code runs as before on Py2.6/2.7 and has the same behaviour on Py3. If "from __future__ import division" is already in effect, this fixer does nothing. � N)�Leaf�Node�Comma)� fixer_base)�token� future_import�touch_import_top�wrap_in_fn_callc �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 �t/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libfuturize/fixes/fix_division_safe.py�match_divisionr sH � � �K�E��9��� F�d�&7�&<��&E�"E� F�&*�&7�&<��&E�"E�F� z^[0-9]*[.][0-9]*$c �R � t | j � � pt | j � � S )N)� _is_floatyr r )r s r � is_floatyr "