Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python311/lib64/python3.11/lib2to3/__pycache__/ |
� �,dN. � � � d dl mZmZ d dlZd dlZd dlZd dlZd dlZd dlZddl m Z d� Z G d� de j � � Z d� Zd d �ZdS )� )�with_statement�print_functionN� )�refactorc � � | � � � } |� � � }t j | |||ddd�� � S )Nz (original)z(refactored)� )�lineterm)� splitlines�difflib�unified_diff)�a�b�filenames �3/opt/alt/python311/lib64/python3.11/lib2to3/main.py� diff_textsr sI � �/� �����A� �����A����1�h�� ,�n�)+�-� -� -� -� c �: � � e Zd Z d� fd� Zd� Z� fd�Zd� Z� xZS )�StdoutRefactoringToolr c � �� || _ || _ |r.|� t j � � s|t j z }|| _ || _ || _ t t | � � � |||� � d S �N)� nobackups� show_diffs�endswith�os�sep�_input_base_dir�_output_dir�_append_suffix�superr �__init__) �self�fixers�options�explicitr r �input_base_dir� output_dir� append_suffix� __class__s �r r zStdoutRefactoringTool.__init__$ s� �� � �$ #���$���� %�.�"9�"9�"�&�"A�"A� %��b�f�$�N�-���%���+��� �#�T�*�*�3�3�F�G�X�N�N�N�N�Nr c �l � | j � |||f� � | j j |g|�R i |�� d S r )�errors�append�logger�error)r! �msg�args�kwargss r � log_errorzStdoutRefactoringTool.log_errorA sJ � �����C��v�.�/�/�/�����#�/��/�/�/��/�/�/�/�/r c � �� |}| j rt|� | j � � r@t j � | j |t | j � � d � � � }nt d|�d| j ��� � �| j r || j z }||k rkt j � |� � }t j � |� � s|rt j |� � | � d||� � | j s�|dz }t j � |� � r< t j |� � n&# t $ r | � d|� � Y nw xY w t j ||� � n'# t $ r | � d||� � Y nw xY wt% t&