Hacked By AnonymousFox
B
� fEO � @ s@ d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z
ddlZddlZddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ dd l
mZ ddlZddlZeejd
d��sx"dD ]Zeee� ejd
e = q�W dejd
_dZdAdd�ZdBdd�Zdadd� Z e d� e�!� Z"e"fdd�Z#da$da%da&dCdd�Z'dd� Z(dd� Z)dd � Z*d!d"� Z+d#d$� Z,d%d&� Z-d'd(� Z.d)d*� Z/d+Z0d,d-� Z1d.d/� Z2G d0d1� d1ej3�Z4G d2d3� d3ej5�Z6G d4d5� d5e6�Z7G d6d7� d7e6�Z8G d8d9� d9ej9�Z:G d:d;� d;e;�Z<e=d<k�r4dd=l>m'Z' e'd>d?d@� e d� dS )Dz� idlelib.run
Simplified, pyshell.ModifiedInterpreter spawns a subprocess with
f'''{sys.executable} -c "__import__('idlelib.run').run.main()"'''
'.run' is needed because __import__ returns idlelib, not idlelib.run.
� N)�autocomplete)�calltip)�
debugger_r)�
debugobj_r)�iomenu)�rpc)�stackviewerzidlelib.run�firstrun)ZsimpledialogZ
messagebox�fontZdialogZ
filedialogZcommondialogZttkztkinter.Fz 127.0.0.1c C sV d}|d||f 7 }|dkr(t �||�}|�� }|r@|d| 7 }|d|j| f 7 }|S )zFormat warnings the IDLE way.z!
Warning (from warnings module):
z File "%s", line %s
Nz %s
z%s: %s
)� linecache�getline�strip�__name__)�message�category�filename�lineno�line�s� r �0/opt/alt/python37/lib64/python3.7/idlelib/run.py�idle_formatwarning* s r c C sB |dkrt j}y|�t| ||||�� W n tk
r< Y nX dS )zuShow Idle-format warning after replacing warnings.showwarning.
The only difference is the formatter called.
N)�sys�stderr�writer �OSError)r r r r �filer r r r �idle_showwarning_subproc7 s r c C s0 | rt dkr,tja tt_nt dk r,t t_da dS )zFReplace warning.showwarning with idle_showwarning_subproc, or reverse.N)�_warnings_showwarning�warnings�showwarningr )Zcapturer r r �capture_warningsG s r! Tc C s | � d� dS )z�Process any tk events that are ready to be dispatched if tkinter
has been imported, a tcl interpreter has been created and tk has been
loaded.�updateN)�eval)�tclr r r �handle_tk_eventsW s r% c C s� | a yttjd �}W n tdtjd� dS td� dgtjdd�<