SILENT KILLERPanel

Current Path: > > opt > alt > python36 > lib64 > python3.6 > idlelib > __pycache__


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python36/lib64/python3.6/idlelib/__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-36.opt-1.pyc File 509 bytes April 17 2024 17:19:40.
__init__.cpython-36.opt-2.pyc File 139 bytes April 17 2024 17:19:27.
__init__.cpython-36.pyc File 509 bytes April 17 2024 17:19:44.
__main__.cpython-36.opt-1.pyc File 270 bytes April 17 2024 17:19:40.
__main__.cpython-36.opt-2.pyc File 191 bytes April 17 2024 17:19:27.
__main__.cpython-36.pyc File 270 bytes April 17 2024 17:19:45.
_pyclbr.cpython-36.opt-1.pyc File 10427 bytes April 17 2024 17:19:40.
_pyclbr.cpython-36.opt-2.pyc File 6811 bytes April 17 2024 17:19:27.
_pyclbr.cpython-36.pyc File 10427 bytes April 17 2024 17:19:45.
autocomplete.cpython-36.opt-1.pyc File 7191 bytes April 17 2024 17:19:40.
autocomplete.cpython-36.opt-2.pyc File 5559 bytes April 17 2024 17:19:27.
autocomplete.cpython-36.pyc File 7191 bytes April 17 2024 17:19:45.
autocomplete_w.cpython-36.opt-1.pyc File 11067 bytes April 17 2024 17:19:40.
autocomplete_w.cpython-36.opt-2.pyc File 10315 bytes April 17 2024 17:19:27.
autocomplete_w.cpython-36.pyc File 11115 bytes April 17 2024 17:19:45.
autoexpand.cpython-36.opt-1.pyc File 2826 bytes April 17 2024 17:19:40.
autoexpand.cpython-36.opt-2.pyc File 2068 bytes April 17 2024 17:19:27.
autoexpand.cpython-36.pyc File 2826 bytes April 17 2024 17:19:45.
browser.cpython-36.opt-1.pyc File 9573 bytes April 17 2024 17:19:40.
browser.cpython-36.opt-2.pyc File 6987 bytes April 17 2024 17:19:27.
browser.cpython-36.pyc File 9573 bytes April 17 2024 17:19:45.
calltip.cpython-36.opt-1.pyc File 5610 bytes April 17 2024 17:19:40.
calltip.cpython-36.opt-2.pyc File 3981 bytes April 17 2024 17:19:27.
calltip.cpython-36.pyc File 5610 bytes April 17 2024 17:19:45.
calltip_w.cpython-36.opt-1.pyc File 6163 bytes April 17 2024 17:19:40.
calltip_w.cpython-36.opt-2.pyc File 5222 bytes April 17 2024 17:19:27.
calltip_w.cpython-36.pyc File 6163 bytes April 17 2024 17:19:45.
codecontext.cpython-36.opt-1.pyc File 8147 bytes April 17 2024 17:19:40.
codecontext.cpython-36.opt-2.pyc File 5157 bytes April 17 2024 17:19:27.
codecontext.cpython-36.pyc File 8182 bytes April 17 2024 17:19:44.
colorizer.cpython-36.opt-1.pyc File 8362 bytes April 17 2024 17:19:40.
colorizer.cpython-36.opt-2.pyc File 8195 bytes April 17 2024 17:19:27.
colorizer.cpython-36.pyc File 8362 bytes April 17 2024 17:19:45.
config.cpython-36.opt-1.pyc File 30507 bytes April 17 2024 17:19:40.
config.cpython-36.opt-2.pyc File 20324 bytes April 17 2024 17:19:27.
config.cpython-36.pyc File 30507 bytes April 17 2024 17:19:45.
config_key.cpython-36.opt-1.pyc File 13848 bytes April 17 2024 17:19:40.
config_key.cpython-36.opt-2.pyc File 12773 bytes April 17 2024 17:19:27.
config_key.cpython-36.pyc File 13848 bytes April 17 2024 17:19:45.
configdialog.cpython-36.opt-1.pyc File 77534 bytes April 17 2024 17:19:40.
configdialog.cpython-36.opt-2.pyc File 47761 bytes April 17 2024 17:19:27.
configdialog.cpython-36.pyc File 77534 bytes April 17 2024 17:19:45.
debugger.cpython-36.opt-1.pyc File 14219 bytes April 17 2024 17:19:40.
debugger.cpython-36.opt-2.pyc File 14060 bytes April 17 2024 17:19:27.
debugger.cpython-36.pyc File 14219 bytes April 17 2024 17:19:45.
debugger_r.cpython-36.opt-1.pyc File 13767 bytes April 17 2024 17:19:40.
debugger_r.cpython-36.opt-2.pyc File 11368 bytes April 17 2024 17:19:27.
debugger_r.cpython-36.pyc File 13893 bytes April 17 2024 17:19:45.
debugobj.cpython-36.opt-1.pyc File 5173 bytes April 17 2024 17:19:40.
debugobj.cpython-36.opt-2.pyc File 5165 bytes April 17 2024 17:19:27.
debugobj.cpython-36.pyc File 5173 bytes April 17 2024 17:19:45.
debugobj_r.cpython-36.opt-1.pyc File 2009 bytes April 17 2024 17:19:40.
debugobj_r.cpython-36.opt-2.pyc File 2001 bytes April 17 2024 17:19:27.
debugobj_r.cpython-36.pyc File 2009 bytes April 17 2024 17:19:45.
delegator.cpython-36.opt-1.pyc File 1276 bytes April 17 2024 17:19:40.
delegator.cpython-36.opt-2.pyc File 1168 bytes April 17 2024 17:19:27.
delegator.cpython-36.pyc File 1276 bytes April 17 2024 17:19:44.
dynoption.cpython-36.opt-1.pyc File 2287 bytes April 17 2024 17:19:40.
dynoption.cpython-36.opt-2.pyc File 1899 bytes April 17 2024 17:19:27.
dynoption.cpython-36.pyc File 2287 bytes April 17 2024 17:19:45.
editor.cpython-36.opt-1.pyc File 48421 bytes April 17 2024 17:19:40.
editor.cpython-36.opt-2.pyc File 46762 bytes April 17 2024 17:19:27.
editor.cpython-36.pyc File 48508 bytes April 17 2024 17:19:45.
filelist.cpython-36.opt-1.pyc File 3372 bytes April 17 2024 17:19:40.
filelist.cpython-36.opt-2.pyc File 3331 bytes April 17 2024 17:19:27.
filelist.cpython-36.pyc File 3398 bytes April 17 2024 17:19:45.
grep.cpython-36.opt-1.pyc File 6753 bytes April 17 2024 17:19:40.
grep.cpython-36.opt-2.pyc File 4904 bytes April 17 2024 17:19:27.
grep.cpython-36.pyc File 6753 bytes April 17 2024 17:19:45.
help.cpython-36.opt-1.pyc File 10289 bytes April 17 2024 17:19:40.
help.cpython-36.opt-2.pyc File 7549 bytes April 17 2024 17:19:27.
help.cpython-36.pyc File 10289 bytes April 17 2024 17:19:45.
help_about.cpython-36.opt-1.pyc File 7423 bytes April 17 2024 17:19:40.
help_about.cpython-36.opt-2.pyc File 6293 bytes April 17 2024 17:19:27.
help_about.cpython-36.pyc File 7423 bytes April 17 2024 17:19:45.
history.cpython-36.opt-1.pyc File 3397 bytes April 17 2024 17:19:40.
history.cpython-36.opt-2.pyc File 2164 bytes April 17 2024 17:19:27.
history.cpython-36.pyc File 3397 bytes April 17 2024 17:19:45.
hyperparser.cpython-36.opt-1.pyc File 6778 bytes April 17 2024 17:19:40.
hyperparser.cpython-36.opt-2.pyc File 5463 bytes April 17 2024 17:19:27.
hyperparser.cpython-36.pyc File 6778 bytes April 17 2024 17:19:45.
idle.cpython-36.opt-1.pyc File 335 bytes April 17 2024 17:19:40.
idle.cpython-36.opt-2.pyc File 327 bytes April 17 2024 17:19:27.
idle.cpython-36.pyc File 335 bytes April 17 2024 17:19:45.
iomenu.cpython-36.opt-1.pyc File 13772 bytes April 17 2024 17:19:40.
iomenu.cpython-36.opt-2.pyc File 13344 bytes April 17 2024 17:19:27.
iomenu.cpython-36.pyc File 13772 bytes April 17 2024 17:19:44.
macosx.cpython-36.opt-1.pyc File 7610 bytes April 17 2024 17:19:40.
macosx.cpython-36.opt-2.pyc File 5420 bytes April 17 2024 17:19:27.
macosx.cpython-36.pyc File 7610 bytes April 17 2024 17:19:44.
mainmenu.cpython-36.opt-1.pyc File 3806 bytes April 17 2024 17:19:40.
mainmenu.cpython-36.opt-2.pyc File 3327 bytes April 17 2024 17:19:27.
mainmenu.cpython-36.pyc File 3806 bytes April 17 2024 17:19:45.
multicall.cpython-36.opt-1.pyc File 15302 bytes April 17 2024 17:19:40.
multicall.cpython-36.opt-2.pyc File 12929 bytes April 17 2024 17:19:27.
multicall.cpython-36.pyc File 15359 bytes April 17 2024 17:19:45.
outwin.cpython-36.opt-1.pyc File 6120 bytes April 17 2024 17:19:40.
outwin.cpython-36.opt-2.pyc File 4428 bytes April 17 2024 17:19:27.
outwin.cpython-36.pyc File 6120 bytes April 17 2024 17:19:44.
paragraph.cpython-36.opt-1.pyc File 5940 bytes April 17 2024 17:19:40.
paragraph.cpython-36.opt-2.pyc File 4049 bytes April 17 2024 17:19:27.
paragraph.cpython-36.pyc File 5940 bytes April 17 2024 17:19:45.
parenmatch.cpython-36.opt-1.pyc File 6382 bytes April 17 2024 17:19:40.
parenmatch.cpython-36.opt-2.pyc File 4828 bytes April 17 2024 17:19:27.
parenmatch.cpython-36.pyc File 6382 bytes April 17 2024 17:19:45.
pathbrowser.cpython-36.opt-1.pyc File 3744 bytes April 17 2024 17:19:40.
pathbrowser.cpython-36.opt-2.pyc File 3595 bytes April 17 2024 17:19:27.
pathbrowser.cpython-36.pyc File 3744 bytes April 17 2024 17:19:45.
percolator.cpython-36.opt-1.pyc File 3512 bytes April 17 2024 17:19:40.
percolator.cpython-36.opt-2.pyc File 3504 bytes April 17 2024 17:19:27.
percolator.cpython-36.pyc File 3650 bytes April 17 2024 17:19:45.
pyparse.cpython-36.opt-1.pyc File 11674 bytes April 17 2024 17:19:40.
pyparse.cpython-36.opt-2.pyc File 8086 bytes April 17 2024 17:19:27.
pyparse.cpython-36.pyc File 12037 bytes April 17 2024 17:19:45.
pyshell.cpython-36.opt-1.pyc File 42727 bytes April 17 2024 17:19:40.
pyshell.cpython-36.opt-2.pyc File 40177 bytes April 17 2024 17:19:27.
pyshell.cpython-36.pyc File 42850 bytes April 17 2024 17:19:45.
query.cpython-36.opt-1.pyc File 10433 bytes April 17 2024 17:19:40.
query.cpython-36.opt-2.pyc File 8301 bytes April 17 2024 17:19:27.
query.cpython-36.pyc File 10433 bytes April 17 2024 17:19:45.
redirector.cpython-36.opt-1.pyc File 6759 bytes April 17 2024 17:19:40.
redirector.cpython-36.opt-2.pyc File 3319 bytes April 17 2024 17:19:27.
redirector.cpython-36.pyc File 6759 bytes April 17 2024 17:19:45.
replace.cpython-36.opt-1.pyc File 7083 bytes April 17 2024 17:19:40.
replace.cpython-36.opt-2.pyc File 6425 bytes April 17 2024 17:19:27.
replace.cpython-36.pyc File 7083 bytes April 17 2024 17:19:45.
rpc.cpython-36.opt-1.pyc File 19558 bytes April 17 2024 17:19:40.
rpc.cpython-36.opt-2.pyc File 16004 bytes April 17 2024 17:19:27.
rpc.cpython-36.pyc File 19645 bytes April 17 2024 17:19:45.
rstrip.cpython-36.opt-1.pyc File 1076 bytes April 17 2024 17:19:40.
rstrip.cpython-36.opt-2.pyc File 990 bytes April 17 2024 17:19:27.
rstrip.cpython-36.pyc File 1076 bytes April 17 2024 17:19:45.
run.cpython-36.opt-1.pyc File 15345 bytes April 17 2024 17:19:40.
run.cpython-36.opt-2.pyc File 13316 bytes April 17 2024 17:19:27.
run.cpython-36.pyc File 15388 bytes April 17 2024 17:19:45.
runscript.cpython-36.opt-1.pyc File 6478 bytes April 17 2024 17:19:40.
runscript.cpython-36.opt-2.pyc File 5269 bytes April 17 2024 17:19:27.
runscript.cpython-36.pyc File 6478 bytes April 17 2024 17:19:44.
scrolledlist.cpython-36.opt-1.pyc File 5385 bytes April 17 2024 17:19:40.
scrolledlist.cpython-36.opt-2.pyc File 5377 bytes April 17 2024 17:19:27.
scrolledlist.cpython-36.pyc File 5385 bytes April 17 2024 17:19:45.
search.cpython-36.opt-1.pyc File 3541 bytes April 17 2024 17:19:40.
search.cpython-36.opt-2.pyc File 3281 bytes April 17 2024 17:19:27.
search.cpython-36.pyc File 3541 bytes April 17 2024 17:19:45.
searchbase.cpython-36.opt-1.pyc File 7977 bytes April 17 2024 17:19:40.
searchbase.cpython-36.opt-2.pyc File 5209 bytes April 17 2024 17:19:27.
searchbase.cpython-36.pyc File 7977 bytes April 17 2024 17:19:45.
searchengine.cpython-36.opt-1.pyc File 6840 bytes April 17 2024 17:19:40.
searchengine.cpython-36.opt-2.pyc File 5182 bytes April 17 2024 17:19:27.
searchengine.cpython-36.pyc File 6840 bytes April 17 2024 17:19:44.
squeezer.cpython-36.opt-1.pyc File 9907 bytes April 17 2024 17:19:40.
squeezer.cpython-36.opt-2.pyc File 6713 bytes April 17 2024 17:19:27.
squeezer.cpython-36.pyc File 9944 bytes April 17 2024 17:19:45.
stackviewer.cpython-36.opt-1.pyc File 5055 bytes April 17 2024 17:19:40.
stackviewer.cpython-36.opt-2.pyc File 5047 bytes April 17 2024 17:19:27.
stackviewer.cpython-36.pyc File 5055 bytes April 17 2024 17:19:44.
statusbar.cpython-36.opt-1.pyc File 1945 bytes April 17 2024 17:19:40.
statusbar.cpython-36.opt-2.pyc File 1937 bytes April 17 2024 17:19:27.
statusbar.cpython-36.pyc File 1945 bytes April 17 2024 17:19:45.
textview.cpython-36.opt-1.pyc File 6437 bytes April 17 2024 17:19:40.
textview.cpython-36.opt-2.pyc File 4856 bytes April 17 2024 17:19:27.
textview.cpython-36.pyc File 6437 bytes April 17 2024 17:19:45.
tooltip.cpython-36.opt-1.pyc File 6566 bytes April 17 2024 17:19:40.
tooltip.cpython-36.opt-2.pyc File 4936 bytes April 17 2024 17:19:27.
tooltip.cpython-36.pyc File 6566 bytes April 17 2024 17:19:45.
tree.cpython-36.opt-1.pyc File 14276 bytes April 17 2024 17:19:40.
tree.cpython-36.opt-2.pyc File 13495 bytes April 17 2024 17:19:27.
tree.cpython-36.pyc File 14276 bytes April 17 2024 17:19:45.
undo.cpython-36.opt-1.pyc File 10780 bytes April 17 2024 17:19:40.
undo.cpython-36.opt-2.pyc File 10772 bytes April 17 2024 17:19:27.
undo.cpython-36.pyc File 10780 bytes April 17 2024 17:19:44.
window.cpython-36.opt-1.pyc File 3156 bytes April 17 2024 17:19:40.
window.cpython-36.opt-2.pyc File 3148 bytes April 17 2024 17:19:27.
window.cpython-36.pyc File 3156 bytes April 17 2024 17:19:45.
zoomheight.cpython-36.opt-1.pyc File 1402 bytes April 17 2024 17:19:40.
zoomheight.cpython-36.opt-2.pyc File 1345 bytes April 17 2024 17:19:27.
zoomheight.cpython-36.pyc File 1402 bytes April 17 2024 17:19:45.
zzdummy.cpython-36.opt-1.pyc File 1206 bytes April 17 2024 17:19:40.
zzdummy.cpython-36.opt-2.pyc File 1130 bytes April 17 2024 17:19:27.
zzdummy.cpython-36.pyc File 1206 bytes April 17 2024 17:19:45.

Reading File: //opt/alt/python36/lib64/python3.6/idlelib/__pycache__/run.cpython-36.opt-1.pyc

3

� fxC�@s�ddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddlm
Z
ddlmZddlmZddlmZddlmZddlmZddlZx"d8D]Zee
e�ejde=q�WdZd9dd�Zd:dd�Zdadd�Zed�e
j�Zefdd�Zdada da!d;dd�Z"dd�Z#d d!�Z$d"d#�Z%d$d%�Z&d&d'�Z'd(d)�Z(d*d+�Z)Gd,d-�d-ej*�Z+Gd.d/�d/ej,�Z-Gd0d1�d1e-�Z.Gd2d3�d3e-�Z/Gd4d5�d5ej0�Z1Gd6d7�d7e2�Z3ed�dS)<�N)�autocomplete)�calltip)�
debugger_r)�
debugobj_r)�iomenu)�rpc)�stackviewer�simpledialog�
messagebox�font�dialog�
filedialog�commondialog�ttkztkinter.z	127.0.0.1cCsVd}|d||f7}|dkr(tj||�}|j�}|r@|d|7}|d|j|f7}|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/python36/lib64/python3.6/idlelib/run.py�idle_formatwarningsrc
CsB|dkrtj}y|jt|||||��Wntk
r<YnXdS)zuShow Idle-format warning after replacing warnings.showwarning.

    The only difference is the formatter called.
    N)�sys�stderr�writer�OSError)rrrr�filerrrr�idle_showwarning_subproc,sr"cCs0|rtdkr,tjatt_ntdk	r,tt_dadS)zFReplace warning.showwarning with idle_showwarning_subproc, or reverse.N)�_warnings_showwarning�warnings�showwarningr")Zcapturerrr�capture_warnings<sr&TcCs|jd�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)�tclrrr�handle_tk_eventsLsr*FcCs�|ayttjd�}Wntdtjd�dStd�dgtjdd�<tjt	dt
|ffd�}d|_|j��x0y�t
r�y
t�Wntk
r�wpYnXytjjdd	d
�}Wntjk
r�d}YnX|r�|\}\}}}|||�}tjj||f�nt�Wqptk
�r t�rda
wpYqptk
�r>td��Yqptj�\}	}
}yt�tjj|df�Wn&tj|	|
|tjd�t�YnXwpYqpXqpWdS)
afStart the Python execution server in a subprocess

    In the Python subprocess, RPCServer is instantiated with handlerclass
    MyHandler, which inherits register/unregister methods from RPCHandler via
    the mix-in class SocketIO.

    When the RPCServer 'server' is instantiated, the TCPServer initialization
    creates an instance of run.MyHandler and calls its handle() method.
    handle() instantiates a run.Executive object, passing it a reference to the
    MyHandler object.  That reference is saved as attribute rpchandler of the
    Executive instance.  The Executive methods have access to the reference and
    can pass it on to entities that they command
    (e.g. debugger_r.Debugger.start_debugger()).  The latter, in turn, can
    call MyHandler(SocketIO) register/unregister methods via the reference to
    register and unregister themselves.

    �z/IDLE Subprocess: no IP port passed in sys.argv.)r!NT�Z
SockThread)�target�name�argsg�������?)�blockZtimeoutF���)�no_exitfunc�intr�argv�print�
__stderr__r&�	threadingZThread�
manage_socket�	LOCALHOSTZdaemon�start�exit_now�exit�KeyboardInterruptrZ
request_queue�get�queueZEmptyZresponse_queueZputr*�quitting�
SystemExit�exc_info�print_exception�	traceback)Zdel_exitfuncZportZ
sockthread�request�seq�methodr/�kwargsZret�type�value�tbrrr�mainZs\




rLcCs�x�td�D]b}tj|�yt|t�}PWq
tk
rj}z&td|jddtj	d�|}WYdd}~Xq
Xq
Wtdtj	d�t
||�dadS|j�dS)N�zIDLE Subprocess: OSError: r+z, retrying....)r!z8IDLE Subprocess: Connection to IDLE GUI failed, exiting.T)
�range�time�sleep�MyRPCServer�	MyHandlerr r5r/rr6�show_socket_errorr;Zhandle_request)�address�iZserver�errZsocket_errorrrrr8�s



r8c	Cspddl}ddlm}|j�}t|�|j�d|d�d|d�d|j�d|j�d	�	}|d
||d�|j�dS)z(Display socket error from manage_socket.rN)�	showerrorz#IDLE's subprocess can't connect to �:r+z.
Fatal OSError #z: zz.
See the 'Startup failure' section of the IDLE doc, online at
https://docs.python.org/3/library/idle.html#startup-failurezIDLE Subprocess Error)�parent)	�tkinterZtkinter.messageboxrWZTk�fix_scalingZwithdraw�errno�strerrorZdestroy)rVrTrZrW�root�msgrrrrS�s*rScsdddl}|j�t�tj�tj�\}}}}|\t_t_t_t	�����fdd���|||�dS)Nrc	s��jt|��|j}|j}|dk	rNt|��krN�t|�||j�td�d�n:|dk	r�|jr�t|��kr��t|�||j�td�d�|r�tj	|�}td�d�d
}t
||�tj|�d�tj||�}x|D]}t|d�d�q�WdS)NzF
The above exception was the direct cause of the following exception:
)r!zE
During handling of the above exception, another exception occurred:
z"Traceback (most recent call last):�run.py�rpc.py�threading.py�queue.py�
debugger_r.py�bdb.pyr,)�endr!)r`rarbrcrdre)
�add�id�__context__�	__cause__rI�
__traceback__r5�__suppress_context__rD�
extract_tb�cleanup_traceback�
print_list�format_exception_only)	�typ�excrK�context�causeZtbe�exclude�linesr)�efile�	print_exc�seenrrrx�s.



z"print_exception.<locals>.print_exc)
r�
checkcache�flush_stdoutrrrB�	last_type�
last_value�last_traceback�set)rrq�valrKZexcinfor)rwrxryrrC�srCc
Cs|dd�}x2|r>x"|D]}|ddj|�rPqWP|d=qWx2|rrx"|D]}|ddj|�rLPqLWP|d
=qBWt|�dkr�|dd�|dd�<tdtjd�tjdj}xftt|��D]V}||\}}}}	|dkr�d}|	o�|j	d	��r|j
d
d||fi�}	||||	f||<q�WdS)zARemove excluded traces from beginning/end of tb; get cached linesNrr+z** IDLE Internal Exception: )r!�exec�?z
-toplevel-z	<pyshell#rrr1r1)�count�lenr5rrrZobjecttable�
rpchandlerrN�
startswithZ
remotecall)
rKruZorig_tbZrpcfiler�rU�fn�lnZnmrrrrrn�s2



rncCsdS)zXXX How to do this now?Nrrrrrr{sr{cCs*trddl}|j�td�tjd�dS)z�Exit subprocess, possibly after first clearing exit functions.

    If config-main.cfg/.def 'General' 'delete-exitfunc' is True, then any
    functions registered with atexit will be removed before exiting.
    (VPython support)

    rNF)r2�atexitZ_clearr&rr<)r�rrrr<s
r<cCsrddl}t|jjdd��}|dkrnxJ|jj|�D]:}|jj||dd�}t|d�}|dkr0td
|�|d<q0WdS)zScale fonts on HiDPI displays.rN�tk�scalinggffffff�?T)r^r.�exists�sizeg�?g�)	Ztkinter.font�floatr�Zcallr�namesZFontr3�round)r^rZr�r.rr�rrrr[sr[c@seZdZdd�ZdS)rQcCs�y�Wn�tk
r�Yn�tk
r:datj�Yn�tj}tddd|d�td|d�tdtj	�j
|d�td||d�td	t|�|d�tj
|d�td
|d�tdd|d�datj�YnXdS)zrOverride RPCServer method for IDLE

        Interrupt the MainThread and exit server if link is dropped.

        T�
�-�()r!zUnhandled server exception!z
Thread: %szClient Address: z	Request: z#
*** Unrecoverable, server exiting!N)rA�EOFErrorr;�thread�interrupt_mainrr6r5r7Zcurrent_threadr.�reprrDrxr@)�selfrEZclient_addressZerfrrr�handle_error+s&zMyRPCServer.handle_errorN)r�
__module__�__qualname__r�rrrrrQ)srQc@s6eZdZd
dd�Zedd��Zedd��Zdd	�ZdS)�
PseudoFileNcCs||_||_||_dS)N)�shell�tags�	_encoding)r�r�r��encodingrrr�__init__LszPseudoFile.__init__cCs|jS)N)r�)r�rrrr�QszPseudoFile.encodingcCs
d|jS)Nz<%s>)r�)r�rrrr.UszPseudoFile.namecCsdS)NTr)r�rrr�isattyYszPseudoFile.isatty)N)rr�r�r��propertyr�r.r�rrrrr�Js
r�c@seZdZdd�Zdd�ZdS)�PseudoOutputFilecCsdS)NTr)r�rrr�writable_szPseudoOutputFile.writablecCsP|jrtd��t|�tk	r@t|t�s6tdt|�j��tj|�}|jj	||j
�S)Nzwrite to closed filezmust be str, not )�closed�
ValueErrorrI�str�
isinstance�	TypeErrorr�__str__r�rr�)r�rrrrrbs

zPseudoOutputFile.writeN)rr�r�r�rrrrrr�]sr�c@s:eZdZd
dd�Zdd�Zddd�Zdd	d
�Zdd�ZdS)�PseudoInputFileNcCstj||||�d|_dS)Nr,)r�r��_line_buffer)r�r�r�r�rrrr�oszPseudoInputFile.__init__cCsdS)NTr)r�rrr�readablesszPseudoInputFile.readabler+cCs�|jrtd��|dkrd}nt|t�s8tdt|�j��|j}d|_|dkrlxb|jj	�}|s^P||7}qNWnDx(t
|�|kr�|jj	�}|s�P||7}qnW||d�|_|d|�}|S)Nzread from closed filer+zmust be int, not r,rr1)r�r�r�r3r�rIrr�r��readliner�)r�r��resultrrrr�readvs,


zPseudoInputFile.readcCs�|jrtd��|dkrd}nt|t�s8tdt|�j��|jpF|jj	�}|dkrXt
|�}|jdd|�}|dkrv|d}||d�|_|d|�S)Nzread from closed filer+zmust be int, not rr�r1)r�r�r�r3r�rIrr�r�r�r��find)r�r�rZeolrrrr��s
zPseudoInputFile.readlinecCs|jj�dS)N)r��close)r�rrrr��szPseudoInputFile.close)Nr1)r1r1)r1)rr�r�r�r�r�r�r�rrrrr�ms



r�c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
rRcCs�t|�}|jd|�|jd�|_t|jdtj�t_t	|jdtj�t_
t	|jdtj�t_tj
t_
ddl}|j|_tj|_|jd�|_tjj|dd	d
�dS)zOverride base methodr��console�stdin�stdoutrrN�interpg�������?)Zmyseq�wait)�	Executive�register�get_remote_proxyr�r�rr�rr�r�r�rr�displayhook�pydocZ
plainpagerZpagerZ_keep_stdinr��
RPCHandlerZgetresponse)r�Z	executiver�rrr�handle�s


zMyHandler.handlecCstjd�dS)z>override SocketIO method - wait for MainThread to shut us down�
N)rOrP)r�rrr�exithook�szMyHandler.exithookcCsdatj�dS)zEOverride SocketIO method - terminate wait on callback and exit threadTN)r@r�r�)r�rrr�EOFhook�szMyHandler.EOFhookcCsdatj�dS)zinterrupt awakened threadTN)r@r�r�)r�rrr�decode_interrupthook�szMyHandler.decode_interrupthookN)rr�r�r�r�r�r�rrrrrR�srRc@sNeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	ddd�Z
dS)r�cCs&||_tj|_tj�|_tj�|_dS)N)r��__main__�__dict__�localsrZCalltiprZAutoComplete)r�r�rrrr��s
zExecutive.__init__cCs�y&d|_dazt||j�WddaXWnVtk
r:YnJtj�|_trTt�t	�|j
jjd�}|rx|j
j
j�YnXt�dS)NTFz<<toggle-jit-stack-viewer>>)�usr_exc_info�
interruptabler�r�rArrBr@r<rCr�r�Zgetvarr�Zopen_remote_stack_viewerr{)r��codeZjitrrr�runcode�s"

zExecutive.runcodecCstrtj�dS)N)r�r�r�)r�rrr�interrupt_the_server�szExecutive.interrupt_the_servercCstj|j|�S)N)rZstart_debuggerr�)r�Zgui_adap_oidrrr�start_the_debugger�szExecutive.start_the_debuggercCs|jj|�dS)zDUnregister the Idb Adapter.  Link objects and Idb then subject to GCN)r�Z
unregister)r�Zidb_adap_oidrrr�stop_the_debugger�szExecutive.stop_the_debuggercCs|jj|�S)N)rZ	fetch_tip)r�r.rrr�get_the_calltip�szExecutive.get_the_calltipcCs|jj||�S)N)rZfetch_completions)r�Zwhat�moderrr�get_the_completion_list�sz!Executive.get_the_completion_listNcCsr|jr|j\}}}ndSd}|dk	r0|jj|�}x|rN|jjddkrN|j}q2W|t_|t_t	j
||�}tj|�S)Nrr�run)rr�)
r�r�r��tb_frame�	f_globals�tb_nextrr|r}rZ
StackTreeItemrZremote_object_tree_item)r�Z	flist_oidrqr�rKZflist�itemrrrr�s
zExecutive.stackviewer)N)rr�r�r�r�r�r�r�r�r�rrrrrr��sr�)r	r
rrr
rr)N)NN)F)4�iorr?rrOrD�_threadr�r7r$rZZidlelibrrrrrrrr��mod�delattr�modulesr9rr"r#r&ZTclr)r*r;r@r�rLr8rSrCrnr{r<r[Z	RPCServerrQ�
TextIOBaser�r�r�r�rR�objectr�rrrr�<module>s`






M$!4+A

SILENT KILLER Tool