Sindbad~EG File Manager
a
��g6R � @ sl d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z
ddlZddlZddl
Z
ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ dd l
mZ ddlZddlZeejd
d��sdD ]Zeee� ejd
e = q�dejd
_dZzdZee_ee_W n e �y2 Y n0 dBdd�Z!dCdd�Z"da#dd� Z$e$d� e�%� Z&e&fdd�Z'da(da)da*dDdd�Z+dd� Z,dd� Z-d d!� Z.d"d#� Z/d$d%� Z0d&d'� Zd(d)� Z1d*d+� Z2d,Z3d-d.� Z4d/d0� Z5G d1d2� d2ej6�Z7G d3d4� d4ej8�Z9G d5d6� d6e9�Z:G d7d8� d8e9�Z;G d9d:� d:ej<�Z=G d;d<� d<�Z>e?d=k�r`dd>l@m+Z+ e+d?d@dA� e$d� dS )Ez� 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
filedialogZcommondialog�ttkztkinter.Fz 127.0.0.1zCtrl-D (end-of-file)c C sV d}|d||f 7 }|du r(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 �'/usr/local/lib/python3.9/idlelib/run.py�idle_formatwarning2 s r c C s@ |du rt j}z|�t| ||||�� W n ty: Y n0 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_subproc? s
�
r c C s0 | rt du r,tja tt_nt dur,t t_da dS )zFReplace warning.showwarning with idle_showwarning_subproc, or reverse.N)�_warnings_showwarning�warnings�showwarningr )�capturer r r �capture_warningsO 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_events_ s r'