관리-도구
편집 파일: fix_xrange.cpython-311.opt-2.pyc
� c��f� � �Z � d dl mZ d dlmZmZmZ d dl mZ G d� dej � � ZdS )� )� fixer_base)�Name�Call�consuming_calls)�patcompc � � � e Zd ZdZdZ� fd�Zd� Zd� Zd� Zd� Z dZ ej e � � Z d Z ej e� � Zd � Z� xZS )� FixXrangeTz� power< (name='range'|name='xrange') trailer< '(' args=any ')' > rest=any* > c � �� t t | � � � ||� � t � � | _ d S �N)�superr � start_tree�set�transformed_xranges)�self�tree�filename� __class__s ��?/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_xrange.pyr zFixXrange.start_tree s5 �� � �i����)�)�$��9�9�9�#&�5�5�� � � � c � � d | _ d S r )r )r r r s r �finish_treezFixXrange.finish_tree s � �#'�� � � r c �� � |d }|j dk r| � ||� � S |j dk r| � ||� � S t t |� � � � �)N�name�xrange�range)�value�transform_xrange�transform_range� ValueError�repr�r �node�resultsr s r � transformzFixXrange.transform se � ��v����:��!�!��(�(��w�7�7�7� �Z�7� "� "��'�'��g�6�6�6��T�$�Z�Z�(�(�(r c � � |d }|� t d|j �� � � � | j � t |� � � � d S )Nr r ��prefix)�replacer r'