Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
libfuturize
/
fixes
/
__pycache__
[ HOME ]
Exec
Submit
fix_division_safe.cpython-311.pyc
� � h/ � � � 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.8/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 "