b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / idlelib /
Filename/usr/lib64/python2.6/idlelib/run.pyo
Size11.93 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:41
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@s°ddkZddkZddkZddkZddkZddkZddkZddkZddkl Z ddkl
Z
ddkl Z ddkl Z ddkl
Z
ddklZddkZdZyddkZWnej
onXddd �Zee_eaeaeaed
�Zd �Zd �Zd
�Zd�Zd�Zd�Z dei!fd��YZ"dei#fd��YZ$de%fd��YZ&dS(iÿÿÿÿN(tCallTips(t AutoComplete(tRemoteDebugger(tRemoteObjectBrowser(t StackViewer(trpcs 127.0.0.1cCszd}|d||f7}|djoti||�i�n|}|o|d|7}n|d|i|f7}|S(sFormat warnings the IDLE ways!
Warning (from warnings module):
s File "%s", line %s
s %s
s%s: %s
N(tNonet linecachetgetlinetstript__name__(tmessagetcategorytfilenametlinenotfiletlinets((s#/usr/lib64/python2.6/idlelib/run.pytidle_formatwarning_subprocs,c CsÙ|ad}tidottid�}ndgti(tidtdddt|ff�}|it �|i
�xVy¨t o(y t �Wq±t
j
o
wq±Xny%tiidt d d
�\}}Wntij
o
wnX|\}}}|||�}tii||f�Wqt
j
oto
t a qqqtj
o
�qti�\} }
} y!t�tii|d f�Wqti| |
| d ti�t �qÒXqqXqd S(
sjStart 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. RemoteDebugger.Debugger.start_debugger()). The latter, in turn, can
call MyHandler(SocketIO) register/unregister methods via the reference to
register and unregister themselves.

i�"itttargettnamet
SockThreadtargstblockttimeoutg������©?RN(t no_exitfunctsystargvtintt threadingtThreadt
manage_sockett LOCALHOSTt setDaemontTruetstarttexit_nowtexittKeyboardInterruptRt
request_queuetgettQueuetEmptytresponse_queuetputtquittingt
SystemExittexc_infotprint_exceptionRt tracebackt
__stderr__( t del_exitfunctportt
sockthreadtseqtrequesttmethodRtkwargstretttypetvaluettb((s#/usr/lib64/python2.6/idlelib/run.pytmain0sN


  %
 cCs¡x�td�D]^}ti|�yt|t�}PWq
tij
o%}tid|i ddIJq
Xq
WtidIJt
||�t a dS|i
�dS(NisIDLE Subprocess: socket error: is, retrying....s8IDLE Subprocess: Connection to IDLE GUI failed, exiting.(trangettimetsleept MyRPCServert MyHandlertsocketterrorRR3Rtshow_socket_errorR#R%thandle_request(taddresstitserverterr((s#/usr/lib64/python2.6/idlelib/run.pyR qs



cCs�ddk}ddk}|i�}|i�|iddjo$d|}|id|d|�n|idd|id�|i�dS( Niÿÿÿÿii=s¿IDLE's subprocess can't connect to %s:%d. This may be due to your personal firewall configuration. It is safe to allow this internal connection because no data is visible on external ports.sIDLE Subprocess ErrortparentsSocket Error: %si(tTkintert tkMessageBoxtTktwithdrawRt showerrortdestroy(RLRIRNROtroottmsg((s#/usr/lib64/python2.6/idlelib/run.pyRG�s   
 c
CsÇddk}|i�t�ti}ti�\}}}}|\t_t_t_t i
|�}|dIJd
}t ||�t i |d |�t i
||�}x|D]} || Iq¯WdS( Niÿÿÿÿs#
Traceback (most recent call last):srun.pysrpc.pys threading.pysQueue.pysRemoteDebugger.pysbdb.pyR(srun.pysrpc.pys threading.pysQueue.pysRemoteDebugger.pysbdb.py(Rt
checkcachet flush_stdoutRtstderrR0t last_typet
last_valuetlast_tracebackR2t
extract_tbtcleanup_tracebackt
print_listtformat_exception_only(
RtefilettyptvalR>texcinfottbetexcludetlinesR((s#/usr/lib64/python2.6/idlelib/run.pyR1�s  
 

c
Csk|}xB|o:x,|D]#}|ddi|�oPqqWP|d=q
WxB|o:x,|D]#}|ddi|�oPq]q]WP|d=qOWt|�djo||(tidIJntidi}x�tt|��D]�}||\}}}} |djo
d}n| o2|id�o"|i dd ||fh�} n|||| f||<qàWd
S( sARemove excluded traces from beginning/end of tb; get cached linesiiÿÿÿÿs** IDLE Internal Exception: texect?s
-toplevel-s <pyshell#RRN(
tcounttlenRRXRt objecttablet
rpchandlerR@t
startswitht
remotecall(
R>Retorig_tbtrpcfileRlRJtfntlntnmR((s#/usr/lib64/python2.6/idlelib/run.pyR]¤s<    

 cCsQy1tiio dti_tiid�nWnttfj
onXdS(Nis
(Rtstdoutt softspacetwritetAttributeErrortEOFError(((s#/usr/lib64/python2.6/idlelib/run.pyRWÃs 
 cCs<to$y
t`Wq+tj
oq+Xntid�dS(sÐExit subprocess, possibly after first deleting sys.exitfunc

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

iN(RRtexitfuncRwR&(((s#/usr/lib64/python2.6/idlelib/run.pyR&Ës 
 RCcBseZd�ZRS(cCséy�WnÛtj
o
�nÇtj
otati�n¥ti}|dddIJ|dIJ|dti �i
�IJ|dI|IJ|dIt |�IJt i
d|�|d IJ|ddIJtati�nXd
S( srOverride RPCServer method for IDLE

Interrupt the MainThread and exit server if link is dropped.

s
t-i(sUnhandled server exception!s
Thread: %ssClient Address: s Request: Rs#
*** Unrecoverable, server exiting!N(R/RxR#R%tthreadtinterrupt_mainRR3Rt
currentThreadtgetNametreprR2t print_excR.(tselfR8tclient_addressterf((s#/usr/lib64/python2.6/idlelib/run.pyt handle_errorÛs& 

(R
t
__module__R�(((s#/usr/lib64/python2.6/idlelib/run.pyRCÙsRDcBs,eZd�Zd�Zd�Zd�ZRS(cCs¾t|�}|id|�|id�t_|_|id�t_|id�t_ddkl }|i
ti_
ti_
ti_
|id�|_ t i
i|dd d d
�d S( sOverride base methodRgtstdinRtRXiÿÿÿÿ(t IOBindingtinterptmyseqtwaitg������©?N(t Executivetregistertget_remote_proxyRR�tconsoleRtRXtidlelibR�tencodingR�Rt
RPCHandlert getresponseR(R�t executiveR�((s#/usr/lib64/python2.6/idlelib/run.pythandleús #cCstid�dS(s>override SocketIO method - wait for MainThread to shut us downi
N(RARB(R�((s#/usr/lib64/python2.6/idlelib/run.pytexithookscCstati�dS(sEOverride SocketIO method - terminate wait on callback and exit threadN(R#R.R{R|(R�((s#/usr/lib64/python2.6/idlelib/run.pytEOFhook scCstati�dS(sinterrupt awakened threadN(R#R.R{R|(R�((s#/usr/lib64/python2.6/idlelib/run.pytdecode_interrupthooks(R
R�R�R�R�R�(((s#/usr/lib64/python2.6/idlelib/run.pyRDøs
 R�cBsSeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zdd�Z
RS( cCs7||_ti|_ti�|_ti�|_dS(N(Rlt__main__t__dict__tlocalsRtcalltipRt autocomplete(R�Rl((s#/usr/lib64/python2.6/idlelib/run.pyt__init__s  c Bs�y,d|_eaz||iUWdeaXWn_ei�|_eo e �ne
�|i i i
d�}|o|i ii�q�nXe�dS(Ns<<toggle-jit-stack-viewer>>(Rt usr_exc_infoR#t
interruptableR�tFalseRR0R.R&R1RlR�tgetvarR�topen_remote_stack_viewerRW(R�tcodetjit((s#/usr/lib64/python2.6/idlelib/run.pytruncode s   cCstoti�ndS(N(R�R{R|(R�((s#/usr/lib64/python2.6/idlelib/run.pytinterrupt_the_server5scCsti|i|�S(N(Rtstart_debuggerRl(R�t gui_adap_oid((s#/usr/lib64/python2.6/idlelib/run.pytstart_the_debugger9scCs|ii|�dS(sDUnregister the Idb Adapter. Link objects and Idb then subject to GCN(Rlt
unregister(R�t idb_adap_oid((s#/usr/lib64/python2.6/idlelib/run.pytstop_the_debugger<scCs|ii|�S(N(R�t fetch_tip(R�R((s#/usr/lib64/python2.6/idlelib/run.pytget_the_calltip@scCs|ii||�S(N(R�tfetch_completions(R�twhattmode((s#/usr/lib64/python2.6/idlelib/run.pytget_the_completion_listCscCs­|io|i\}}}ndSd}|dj o|ii|�}nx,|o$|iiddjo
|i}qPW|t_|t_ t
i ||�}t i
|�S(NR
Rtrun(srpcR³(R�RRlR�ttb_framet f_globalsttb_nextRRYRZRt
StackTreeItemRtremote_object_tree_item(R�t flist_oidRaRbR>tflisttitem((s#/usr/lib64/python2.6/idlelib/run.pyt stackviewerFs

  N( R
R�R�R¥R¦R©R¬R®R²RR¼(((s#/usr/lib64/python2.6/idlelib/run.pyR�s       ('RRRARER2R{RR*R�RRRRRRR�R!twarningst ImportErrorRRt
formatwarningR R%R.R�R?R RGR1R]RWR&t RPCServerRCR�RDtobjectR�(((s#/usr/lib64/python2.6/idlelib/run.pyt<module>sD         
 A