python (3.11.7)
    eN.                         	 d dl mZmZ d dlZd dlZd dlZd dlZd dlZd dlZddl	m
Z
 d Z G d de
j                  Z
d Zd
d	ZdS )    )with_statementprint_functionN   )refactorc           	          	 |                                  } |                                 }t          j        | |||ddd          S )Nz
(original)z(refactored) )lineterm)
splitlinesdifflibunified_diff)abfilenames      @/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/lib2to3/main.py
diff_textsr      sI    /	A	A1h ,n)+- - - -    c                   :     e Zd Z	 	 d fd	Zd Z fdZd Z xZS )StdoutRefactoringToolr   c	                    	 || _         || _        |r.|                    t          j                  s|t          j        z
  }|| _        || _        || _        t          t          |           
                    |||           d S N)	nobackups
show_diffsendswithossep_input_base_dir_output_dir_append_suffixsuperr   __init__)
selffixersoptionsexplicitr   r   input_base_dir
output_dir
append_suffix	__class__s
            r   r    zStdoutRefactoringTool.__init__$   s    	$ #$ 	%."9"9"&"A"A 	%bf$N-%+
#T**33FGXNNNNNr   c                 l    | j                             |||f            | j        j        |g|R i | d S r   )errorsappendloggererror)r!   msgargskwargss       r   	log_errorzStdoutRefactoringTool.log_errorA   sJ    Cv.///#/////////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&