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 : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / idlelib /
Filename/usr/lib64/python2.6/idlelib/PyShell.pyo
Size45.5 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:39
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
ò� ]c(@s\ddkZddkZddkZddkZddkZddkZddkZddkZddkZddk Z ddk
Z
ddk Z ddk l
Z
yddkTWn-ej
o!eidIJeid�nXddkZddklZlZddklZddklZdd klZdd
klZdd klZdd k l!Z!dd
k l"Z"ddk l#Z#ddk l$Z$ddk l%Z%ei&ei'dZ(dZ)dZ*yddk+l,Z,Wnej
o
dZ,nXeia-yddk.Z.Wnej
on2Xe/e/d�Z0e0e._1e/e/d�Z2e2e._3e/e i4d�Z5e5e _4defd��YZ6defd��YZ7defd��YZ8defd ��YZ9d!e"i:fd"��YZ;d#e
fd$��YZ<d%efd&��YZ=d'e>fd(��YZ?d)Z@d*�ZAeBd+joeiCd+eiCd%<eA�ndS(,iÿÿÿÿN(tInteractiveInterpreter(t*sK** IDLE can't import Tkinter. Your Python may not be configured for Tk. **i(t EditorWindowt
fixwordbreaks(tFileList(tColorDelegator(t
UndoDelegator(t OutputWindow(tidleConf(tidlever(trpc(tDebugger(tRemoteDebugger(t
macosxSupportt_s 127.0.0.1i(tSIGTERMic
CsOt}y/|iti||||d|d|��Wntj
onXdS(Ntfiletline(twarning_streamtwritetwarningst
formatwarningtIOError(tmessagetcategorytfilenametlinenoRR((s'/usr/lib64/python2.6/idlelib/PyShell.pytidle_showwarning9s cCszd}|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__(RRRRRRts((s'/usr/lib64/python2.6/idlelib/PyShell.pytidle_formatwarningBs,cCsiti}h}x?|i�D]1}|d |ddjo||||<qqW|�|i|�dS(svExtend linecache.checkcache to preserve the <pyshell#...> entries

Rather than repeating the linecache code, patch it to save the
<pyshell#...> entries, call the original linecache.checkcache()
(which destroys them), and then restore the saved entries.

orig_checkcache is bound at definition time to the original
method, allowing it to be patched.

iiÿÿÿÿs<>N(Rtcachetkeystupdate(Rtorig_checkcacheR#tsave((s'/usr/lib64/python2.6/idlelib/PyShell.pytextended_linecache_checkcacheOs 
tPyShellEditorWindowcBszeZdZd�ZddgZd�Zdd�Zdd�Zd �Z d
�Z
d �Z d �Z d
�Z
d�ZRS(s6Regular text edit window in IDLE, supports breakpointscGsÀg|_ti||�|iid|i�|iid|i�|iid|ii�t i
i t i
�d�|_|iio|i�n|ii|d�}|ii|�dS(Ns<<set-breakpoint-here>>s<<clear-breakpoint-here>>s<<open-python-shell>>sbreakpoints.lstcSs|i�|�dS(N(trestore_file_breaks(told_hooktself((s'/usr/lib64/python2.6/idlelib/PyShell.pytfilename_changed_hookus
(t breakpointsRt__init__ttexttbindtset_breakpoint_heretclear_breakpoint_heretflistt
open_shelltostpathtjoinRt
GetUserCfgDirtbreakpointPathtioRR*tfilename_change_hooktset_filename_change_hook(R,targsR-((s'/usr/lib64/python2.6/idlelib/PyShell.pyR/js  
  sSet Breakpoints<<set-breakpoint-here>>sClear Breakpoints<<clear-breakpoint-here>>c Cs¤|i}|ii}|idd|d|d�y|ii|�}Wn#tj
o|ii|�nXy&|ii i
i }|i ||�WnnXdS(NtBREAKs%d.0i(
R0R;Rttag_addR.tindext
ValueErrortappendR4tpyshelltinterptdebuggerR2(R,RR0Rtitdebug((s'/usr/lib64/python2.6/idlelib/PyShell.pytset_breakpoint~s  cCsW|i}|ii}|p|i�dStt|id���}|i|�dS(Ntinsert(R0R;RtbelltinttfloatRARI(R,teventR0RR((s'/usr/lib64/python2.6/idlelib/PyShell.pyR2�s  
c Cs«|i}|ii}|p|i�dStt|id���}y|ii|�WnnX|i ddd�y&|i
i i i
}|i||�WnnXdS(NRJR?sinsert linestartsinsert lineend +1char(R0R;RRKRLRMRAR.tremovet
tag_removeR4RDRERFR3(R,RNR0RRRH((s'/usr/lib64/python2.6/idlelib/PyShell.pyR3�s"  
 cCs�|iox|i}|ii}|p|i�dSg|_|iddt�y#|iii i
}|i |�Wq�q�XndS(NR?s1.0( R.R0R;RRKRPtENDR4RDRERFtclear_file_breaks(R,R0RRH((s'/usr/lib64/python2.6/idlelib/PyShell.pyRR¨s
  
 c Csà|i}|ii}yt|id�i�}Wntj
o
g}nXt|id�}x3|D]+}|i|d�p|i|�qfqfW|i �|i}|o#|i|dt
|�d�n|i �dS(s#Save breakpoints when file is savedtrtwt=s
N( R.R;RtopenR:t readlinesRt
startswithRtupdate_breakpointststrtclose(R,tbreaksRtlinestnew_fileR((s'/usr/lib64/python2.6/idlelib/PyShell.pytstore_file_breaks·s    
 #cCsÂ|ii�|ii}|djodStii|i�o}t |id�i
�}xb|D]V}|i |d�o<t |t
|�d�}x|D]}|i|�q�Wq`q`WndS(NRSRUi(R0R%R;RRR6R7tisfileR:RVRWRXtevaltlenRI(R,RR]Rtbreakpoint_linenumberstbreakpoint_linenumber((s'/usr/lib64/python2.6/idlelib/PyShell.pyR*Þs
 
cCs4|i}|id�}|i|�}||_dS(s3Retrieves all the breakpoints in the current windowR?N(R0t
tag_rangestranges_to_linenumbersR.(R,R0trangestlinenumber_list((s'/usr/lib64/python2.6/idlelib/PyShell.pyRYës cCs�g}x|tdt|�d�D]b}tt||��}tt||d��}x)||jo|i|�|d7}qXWqW|S(Niii(trangeRbRLRMRC(R,RgR]RARtend((s'/usr/lib64/python2.6/idlelib/PyShell.pyRfòs

cCs|i�ti|�dS(s7Extend base method - clear breaks when module is closedN(RRRt_close(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRks
(sSet Breakpoints<<set-breakpoint-here>>(sClear Breakpoints<<clear-breakpoint-here>>N(R t
__module__t__doc__R/t rmenu_specsRIRR2R3RRR_R*RYRfRk(((s'/usr/lib64/python2.6/idlelib/PyShell.pyR)gs      '
 tPyShellFileListcBs&eZdZeZdZdd�ZRS(s8Extend base class: IDLE supports a shell and breakpointscCsW|io|iii�n3t|�|_|io|ii�pdSn|iS(N(RDttoptwakeuptPyShelltbeginR(R,RN((s'/usr/lib64/python2.6/idlelib/PyShell.pyR5s

 N(R RlRmR)RRRDR5(((s'/usr/lib64/python2.6/idlelib/PyShell.pyRo stModifiedColorDelegatorcBs)eZdZd�Zd�Zd�ZRS(s8Extend base class: colorizer for the shell window itselfcCsti|�|i�dS(N(RR/t LoadTagDefs(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyR/ s
cCs7|iddd�|iddd�ti|�dS(NtTODOs1.0tiomarktSYNC(RPR@Rtrecolorize_main(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRy$scCs�ti|�tiddd�}|iihhdd6dd6d6ti|d�d6ti|d�d6ti|d �d 6�dS(
NtmaintThemetnamet
backgroundt
foregroundtstdintstdouttstderrtconsole(RRuRt GetOptionttagdefsR%Rt GetHighlight(R,ttheme((s'/usr/lib64/python2.6/idlelib/PyShell.pyRu)s
 (R RlRmR/RyRu(((s'/usr/lib64/python2.6/idlelib/PyShell.pyRts  tModifiedUndoDelegatorcBs&eZdZdd�Zdd�ZRS(s;Extend base class: forbid insert/delete before the I/O markcCs_y/|ii|dd�o|ii�dSWntj
onXti||||�dS(Nt<Rw(tdelegatetcompareRKtTclErrorRRJ(R,RAtcharsttags((s'/usr/lib64/python2.6/idlelib/PyShell.pyRJ6s
 cCs\y/|ii|dd�o|ii�dSWntj
onXti|||�dS(NR�Rw(R�R�RKR�Rtdelete(R,tindex1tindex2((s'/usr/lib64/python2.6/idlelib/PyShell.pyR�?s
 N(R RlRmRRJR�(((s'/usr/lib64/python2.6/idlelib/PyShell.pyR�3s t MyRPCClientcBseZd�ZRS(cCs
t�dS(s0Override the base class - just re-raise EOFErrorN(tEOFError(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyt
handle_EOFKs(R RlR�(((s'/usr/lib64/python2.6/idlelib/PyShell.pyR�IstModifiedInterpretercBs:eZd�ZdZdZd�Zd�Zd�Zd�Z d�Z
d�Z d�Z d�Z
d �ZdZd
�ZdZd �Zd �Zd
�Zd�ZdZd�Zdd�Zd�Zd�Zd�Zdd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%RS( cCsT||_tidi}ti|d|�d|_t|_ d|_
t |_ dS(Nt__main__tlocals(
t tkconsoletsystmodulest__dict__RR/Rtsave_warnings_filterstFalset
restartingtsubprocess_arglisttPORTtport(R,R�R�((s'/usr/lib64/python2.6/idlelib/PyShell.pyR/Rs    cCsN|idjo|i�|_n|i}tititi|�|_dS(N( R�Rtbuild_subprocess_arglistR6tspawnvtP_NOWAITR�t
executabletrpcpid(R,R>((s'/usr/lib64/python2.6/idlelib/PyShell.pytspawn_subprocess^s c
Csõg}tiD]}|d|q~}dddjo|id�ntidddd td
d �}td jod
|f}nd|f}tid djo!dtijodti}n
ti}|g|d|t |i
�gS(Ns-Wiiis-QnewRztGeneralsdelete-exitfunctdefaultttypetboolsidlelib.PyShells&__import__('idlelib.run').run.main(%r)s__import__('run').main(%r)itwint s"%s"s-c( R�t warnoptionsRCRR�R�R tplatformR¤RZR (R,t_[1]R!RTt del_exitftcommandtdecorated_exec((s'/usr/lib64/python2.6/idlelib/PyShell.pyR¡ds(

$ cCs¯t|if}x^td�D]B}ti|�yt|�|_PWqtij
o }qXqW|i �dS|ii i �d|_t
djo#|ii ititid�n|i�|ii id�y|ii�Wn#tij
o}|i�dSX|iid|i�|iid|ii�|iid|ii�|iid|ii�|iid t�|iid
|�|i�|i�|iS( Niiii
RR�R�R4RRE(tHOSTR RittimetsleepR�trpcclttsocketterrortdisplay_port_binding_errorRtlistening_sockt getsocknameR�t
setsockoptt
SOL_SOCKETt SO_REUSEADDRR¦t
settimeouttacceptttimeouttdisplay_no_subprocess_errortregisterR�R�R�R4Rt
transfer_pathtpoll_subprocess(R,taddrRGterr((s'/usr/lib64/python2.6/idlelib/PyShell.pytstart_subprocesszs>

 





c Cs�|io|iSt|_|i�}|o"yti|i�WqPqPXn|ii�|i�|i}|i }t
|_ |i �y|ii �Wn#t
ij
o}|i�dSX|i�|iidd�|o|id�|i�nt|i�ddd}|i|d|�|iidd�|iidd �|i�|o ti|i�}|i�nt
|_|iS(
NRwsend-1cs
iiRUs RESTART trestarttleft(R�R¶tTruet getdebuggerR tclose_subprocess_debuggerR[tunix_terminateR�t executingR�R¦RÀR·RÁRÂRRÄR0R�Rt
showpromptRLtwidthtmark_sett mark_gravitytrestart_subprocess_debuggertload_breakpoints(R,RHR�t
was_executingRÇthalfbartgui((s'/usr/lib64/python2.6/idlelib/PyShell.pytrestart_subprocess¤sF
  

   




 cCs|iidddh�dS(Ntexectinterrupt_the_server((R¶t
remotecall(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyt__request_interruptÐscCstid|i�i�dS(Nttarget(t threadingtThreadt'_ModifiedInterpreter__request_interrupttstart(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pytinterrupt_subprocessÓscCsJy|ii�Wntj
onX|i�t|i_d|_dS(N(R¶R[tAttributeErrorRÎR�R�RÏR(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pytkill_subprocessÖs
 c Cstttd�o`yti|it�Wntj
odSXyti|id�Wqptj
odSXndS(s;UNIX: make sure subprocess is terminated and collect statustkillNi(thasattrR6RæR¥RtOSErrortwaitpid(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRÎßscCs|idtif�dS(NsRif 1:
import sys as _sys
_sys.path = %r
del _sys

(t
runcommandR�R7(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRÄísc Csª|i}|djodSy|i|idd�}Wn>tttfj
o)|iiodSd}|i �nX|o÷|ii
�d|_|\}}|ii }|djo%|dj o|t |�IJqKnm|djo%|ii
d�o|i�qKn;|djo-d}ti|I|IJ||I|IJny|ii�Wqvtj
oqvXn|iip#|iii|ii|i�ndS(Ntwaitg������©?tOKt EXCEPTIONs<<toggle-jit-stack-viewer>>tERRORs/PyShell.ModifiedInterpreter: Subprocess ERROR:
(R¶Rt pollresponset
active_seqR�RtKeyboardInterruptR�tclosingRÙt resetoutputR�treprtgetvartremote_stack_viewerR�t
__stderr__t endexecutingRäR0taftert pollintervalRÅ(R,tclttresponsethowtwhatR�terrmsg((s'/usr/lib64/python2.6/idlelib/PyShell.pyRÅös@ 


   



 
cCs
||_dS(N(RF(R,RF((s'/usr/lib64/python2.6/idlelib/PyShell.pyt setdebuggerscCs|iS(N(RF(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRÌ!scCs|iiid|i�dS(s�Initiate the remote stack viewer from a separate thread.

This method is called from the subprocess, and by returning from this
method we allow the subprocess to unblock. After a bit the shell
requests the subprocess to open the remote stack viewer which returns a
static object looking at the last exception. It is queried through
the RPC mechanism.

i,N(R�R0RùRö(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pytopen_remote_stack_viewer$s
c Cs ddkl}|iidddh�}|djo|iii�dS|i|i|�}ddk l
}l }t |ii�}t
iddd �}t
i|d
�d }||d |d
d�} | iidddd�|| id|�}
|
i�dS(Niÿÿÿÿ(tRemoteObjectBrowserRÚt stackviewerR4(tScrolledCanvastTreeNodeRzR{R|tnormalR}tbgthighlightthicknessitexpanditfilltboth(sflist(tidlelibRR¶t remotequeueRR�trootRKtStubObjectTreeItemtidlelib.TreeWidgetRRtToplevelRR�R�tframetpacktcanvasR ( R,RtoidtitemRRRpR�R}tsctnode((s'/usr/lib64/python2.6/idlelib/PyShell.pyRö1s
icCs#|i|�}|i||�dS(s1Like runsource() but assumes complete exec sourceN(t stuffsourcetexecfile(R,tsourceR((s'/usr/lib64/python2.6/idlelib/PyShell.pyt
execsourceDscCs³|djot|d�i�}nyt||d�}Wncttfj
oQ|ii�|ii}|dIJ|dIJt i
||�|ii �nX|i |�dS(sExecute an existing fileRSRÚs *** Error in script or command!
s"Traceback (most recent call last):N(
RRVtreadtcompilet
OverflowErrort SyntaxErrorR�RóR�RtshowsyntaxerrorRÐtruncode(R,RRtcodettkerr((s'/usr/lib64/python2.6/idlelib/PyShell.pyRIs

 

c Csò|i|�}d|_ti|_tidddt�t|ti �o[ddk
l }y|i |i
�}Wq©tj
o"|ii�|id�dSXnzti|||�SWd|idj o|iti(d|_nXdS( sBExtend base class method: Stuff the source in the line cache firstitactionR¸Riÿÿÿÿ(t IOBindings Unsupported characters in input
N(RtmoreRtfiltersR�tfilterwarningst
SyntaxWarningt
isinstancettypest UnicodeTypeR R&tencodetencodingt UnicodeErrorR�RóRRt runsourceR(R,RRR&((s'/usr/lib64/python2.6/idlelib/PyShell.pyR1Ys" 




cCsSd|i}|id|_|id�}t|�dd||fti|<|S(s"Stuff source in the filename caches <pyshell#%d>is
i(tgidtsplitRbRR#(R,RRR]((s'/usr/lib64/python2.6/idlelib/PyShell.pyRps

#cCs|id|f�dS(s>Prepend sys.path with file's directory if not already includeds(if 1:
_filename = %r
import sys as _sys
from os.path import dirname as _dirname
_dir = _dirname(_filename)
if not _dir in _sys.path:
_sys.path.insert(0, _dir)
del _filename, _sys, _dirname, _dir

N(Rê(R,R((s'/usr/lib64/python2.6/idlelib/PyShell.pytprepend_syspathxsc
Cs|ii}|i�}|oÌ|\}}}}|djod|d}nd|d|df}|id|�|i|�|i|�} | o(| tjo|id|d|�n|ii�|idt |��n|ii�t
i ||�|ii �dS(s�Extend base class method: Add Colorizing

Color the offending position instead of printing it and pointing at it
with a caret.

isiomark + %d charss&iomark linestart + %d lines + %d charsRîs
wordstartsSyntaxError: %s
N(
R�R0t unpackerrorR@tseetgett
IDENTCHARSRóRRZRR!RÐ(
R,RR0tstufftmsgRtoffsetRtpostchar((s'/usr/lib64/python2.6/idlelib/PyShell.pyR!�s$  



c
Cs�ti�\}}}|tj}|oAy-|\}\}}}} |p
d}nWqid}qiXn|o|||| fSdSdS(Ni(R�texc_infoR R(
R,R©tvaluettbtokR:tdummy_filenameRR;R((s'/usr/lib64/python2.6/idlelib/PyShell.pyR5 s cCsL|ii�|i�ti|�|iid�o|ii�ndS(s1Extend base class method to reset output properlys<<toggle-jit-stack-viewer>>N(R�RótchecklinecacheRt
showtracebackRõtopen_stack_viewer(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRD¯s



cCsHti}x8|i�D]*}|d |ddjo ||=qqWdS(Niiÿÿÿÿs<>(RR#R$(R,tctkey((s'/usr/lib64/python2.6/idlelib/PyShell.pyRC·s
 
cBsU|iio|i�dS|io |iidd|fh�n ||iUdS(s*Run the code without invoking the debuggeriRÚR"i(R�RÏtdisplay_executing_dialogR¶R
R�(R,R#((s'/usr/lib64/python2.6/idlelib/PyShell.pyRê½s


  c Bsß|iio|ii�n|i�|id
j o|iei(d
|_n|i }zJyw|ii
�| o5|i d
j o%|i i dd|fh�|_
n*|o|i||i�n ||iUWnÌej
oQ|iip:eiddddd|ii�o�q0|i�q¤�nqeo+|iidIJ|i�|ii�q¤|iio e|i_|iid IJq¤|i�nXWd
ep+y|ii�WqÚej
oqÚXnXd
S( sOverride base class methodRÚR"sExit?sDo you want to exit altogether?R¨tyestmasters IDLE internal error in runcode()RñN(R�RÏRERÙRCR�RRR(RFtbeginexecutingR¶t
asyncqueueRðtrunR�t
SystemExitRòt tkMessageBoxtaskyesnoR0RDtuse_subprocessR�RøtcanceledR�Rä(R,R#RF((s'/usr/lib64/python2.6/idlelib/PyShell.pyR"ÉsR



 




 cCs|iii|�dS(sOverride base class methodN(R�R�R(R,R!((s'/usr/lib64/python2.6/idlelib/PyShell.pyRúscCs tiddd|ii�dS(NsPort Binding ErrorsAIDLE can't bind to a TCP/IP port, which is necessary to communicate with its Python execution server. This might be because no networking is installed on this computer. Run IDLE with the -n command line switch to start without a subprocess and refer to Help/IDLE Help 'Running without a subprocess' for further details.RJ(ROt showerrorR�R0(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyR¹þscCs tiddd|ii�dS(NsSubprocess Startup Errors�IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection.RJ(RORSR�R0(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRÂ scCs tiddd|ii�dS(NsAlready executingsYThe Python Shell window is already executing a command; please wait until it is finished.RJ(RORSR�R0(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRHsN(&R RlR/RR¶R¥R¦R¡RÈRÙRáRãRåRÎRÄRðRÅRFRRÌRRöR2RRR1RR4R!R5RDRCRêR"RR¹RÂRH(((s'/usr/lib64/python2.6/idlelib/PyShell.pyR�PsF    * ,     &  
         1  RrcBs½eZdZeZeZd3d4d5d6d7d8gZei �oed
=d9ed<nddk
l Z d:d�Z
d�ZeZeZeZeZeZd�Zd�Zd:d�Zd�Zd:d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d �Z!d!�Z"d"Z#d#Z$d$�Z%d%�Z&d&�Z'd:d'�Z(d(�Z)d)�Z*d*�Z+d+�Z,d,�Z-d:d-�Z.d:d.�Z/d:d/�Z0d0�Z1d1�Z2d;d2�Z3RS(<s Python ShellRt_Fileteditt_EditRHt_Debugtoptionst_Optionstwindowst_Windowsthelpt_Helpiýÿÿÿt_Windowiþÿÿÿiÿÿÿÿ(tHistorycCsPto6|i}|dddjo|idd�q=nt|�|_|djo-t�}t|�|i�t |�}nt
i ||dd�t |_
d|_t |_|i}|idd�|id|i�|id |i�|id
|i�|id |i�|id |i�|id
|i�|id|i�to*|id|i�|id|i�nti|_ti|_ ti!|_"ddk#l$}t%|d|i&�|_t%|d|i&�|_t%|d|i&�|_'tp%|it_|it_|t_!n|i(|i�|_)d|_*dS(NiitshelltShe_llitwrapR=s<<newline-and-indent>>s<<plain-newline-and-indent>>s<<interrupt-execution>>s<<end-of-file>>s<<open-stack-viewer>>s<<toggle-debugger>>s<<toggle-jit-stack-viewer>>s<<view-restart>>s<<restart-shell>>iÿÿÿÿ(R&R�R�R�i2(sshellRa(+RQt
menu_specsRJR�RERtTkRtwithdrawRoRR/RËtusetabst indentwidthtcontext_use_ps1R0t configureR1tenter_callbacktlinefeed_callbacktcancel_callbackt eof_callbackREttoggle_debuggerttoggle_jit_stack_viewertview_restart_markt
restart_shellR�R�t save_stdoutR�t save_stderrRt
save_stdinR R&t
PseudoFileR/R�R_thistoryRú(R,R4tmsRR0R&((s'/usr/lib64/python2.6/idlelib/PyShell.pyR/3sN 
 

         
cCstidt�S(Nt
shell_only(Rt
GetExtensionsRË(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pytget_standard_extension_namesdscCs
|adS(N(R(R,tstream((s'/usr/lib64/python2.6/idlelib/PyShell.pytset_warning_streammscCstS(N(R(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pytget_warning_streamqscCsd|io(tiddd|i�|i�dS|ii�}|o|i�n |i�dS(NsDon't debug nows*You can only toggle the debugger when idleRJtbreak( RÏRORSR0tset_debugger_indicatorRERÌtclose_debuggert
open_debugger(R,RNtdb((s'/usr/lib64/python2.6/idlelib/PyShell.pyRnts
 

cCs%|ii�}|id| �dS(Ns<<toggle-debugger>>(RERÌtsetvar(R,R�((s'/usr/lib64/python2.6/idlelib/PyShell.pyR�scCsdS(N((R,RN((s'/usr/lib64/python2.6/idlelib/PyShell.pyRo�scCs�|ii�}|oo|iid�|i�|iioti|ii�n|i�|i i
d�dt _ |i
�n|i�dS(Ns [DEBUG OFF]
s>>> (RERÌRRR[R¶R tclose_remote_debuggerRóR�RR�tps1RÐR(R,R�((s'/usr/lib64/python2.6/idlelib/PyShell.pyR��s


 cCss|iioti|ii|�}nti|�}|ii|�|i�dt_|i �|i
�dS(Ns[DEBUG ON]
>>> ( RER¶R tstart_remote_debuggerR RRÕR�R�RÐR(R,tdbg_gui((s'/usr/lib64/python2.6/idlelib/PyShell.pyR��s


 
cCs|i�d|_dS(sHelper for ModifiedInterpreteriN(RóRÏ(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRK¢s
cCs d|_d|_|i�dS(sHelper for ModifiedInterpreteriN(RÏRRRÐ(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRø§s  cCs�|io7tiddddd|i�}|tjodSn|io|ii�nt|_ t|_
|ii d|i |i
�dS( sExtend EditorWindow.close()sKill?s6The program is still running!
Do you want to kill it?R¨RAtparenttcanceliN(RÏROt askokcancelR0R�treadingRptquitRËRRRòRùRútclose2(R,Rü((s'/usr/lib64/python2.6/idlelib/PyShell.pyR[­s
 
 
  cCs
ti|�S(N(RR[(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyR�¾scCs~|i�to|ii�n|it_|it_|i t_
d|_d|_ d|i
_d|_ti|�dS(sEExtend EditorWindow._close(), shut down debugger and execution serverN(R�RQRERåRrR�R�RsR�RtRRR�R4RDRvRRk(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyRkÁs
       cCstS(s8Override EditorWindow method: never remove the colorizer(RË(R,R((s'/usr/lib64/python2.6/idlelib/PyShell.pytispythonsourceÑscCs|iS(N(t shell_title(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyt short_titleÕss@Type "copyright", "credits" or "license()" for more information.s�
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
cCs�|i�to/d}|ii�}|p|i�tSnd}|idtiti |i
|i t i
|f�|i�ddk}d|_tS(Nts==== No Subprocess ====s&Python %s on %s
%s
%s
IDLE %s %s
iÿÿÿÿ(RóRQRERÈR[R�RR�tversionR®t COPYRIGHTtfirewallmessageR t IDLE_VERSIONRÐtTkinterRt
_default_rootRË(R,tnosubtclientR�((s'/usr/lib64/python2.6/idlelib/PyShell.pyRsäs

  
  c Cs|i}zd|_|ii�Wd||_X|iidd�}t|�djo
d}nt|t�o@ddkl }y|i
|i �}Wq²t j
oq²Xn|i
�|iod|_tp
t�qän|iod|_d}n|S( NiRwsend-1cis
iÿÿÿÿ(R&R�(R�RptmainloopR0R7RbR+tunicodeR R&R.R/R0RóRRRQRñt endoffile(R,R'RR&((s'/usr/lib64/python2.6/idlelib/PyShell.pytreadlineös.  

 

 
 
cCstS(N(RË(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pytisattyscCsãy"|iiddd�odSWnnX|ip|ip)|i�|iid�|i�dSd|_d|_ |io?|ii
o2|ii �o|ii �qÄ|ii
�n|io|ii�ndS(Ns sel.firsts!=ssel.lastsKeyboardInterrupt
R~ii(R0R�RÏR�RóRERRÐR�RRR¶RÌRÙRãRpR�(R,RN((s'/usr/lib64/python2.6/idlelib/PyShell.pyRls& 

  
cCs�|io|i odS|iiddd�o|iiddd�pdS|ip|i�|i�n d|_d|_|ii �dS(NRws==RJsend-1ciiR~(
RÏR�R0R�RóR[RRR�RpR�(R,RN((s'/usr/lib64/python2.6/idlelib/PyShell.pyRm)s

  
cCsB|io'|iidd�|iid�n|i|�dS(NRJs
R~(R�R0RJR6tnewline_and_indent_event(R,RN((s'/usr/lib64/python2.6/idlelib/PyShell.pyRk8s


cCs|io|i odSyR|iidd�}|o2|iiddd�o|i||�dSnWnnX|iiddd�oN|iid d�}|oI|iidd|d
�o,|i|ii|d |d
�|�dS|iid d�}|oI|iid d
|d �o,|i|ii|d |d
�|�dS|iidd�}|oD|ii|d dd�o'|i|ii|d
d �|�n |i|iidd �|�dS|iiddd�o|iidd�n|iidd�}|o%|i � o|ii
dd�n|iiddd�o|i |�dS|iidd�|io'|ii dd�|ii
d�n|i |�|iid dd�|ii�|io|ii�n |i�dS(Ns sel.firstssel.lasts<=RwR~RJR�siomark linestartRiisinsert lineends>=R�sinsert linestartsend-1csend-1c linestarts
(RÏR�R0R7R�trecallt
tag_prevranget
tag_nextrangeRÒRR�R�RJR6R@tupdate_idletasksRpR�trunit(R,RNtseltprevtnexttindicesR!((s'/usr/lib64/python2.6/idlelib/PyShell.pyRjAsX
$'$''





c
Cs±tidd|�}tidd|�}|id�}|ii�zF|iiddd�|iidd �|iid
d�}|i�i d �o&|i
|�|iid
d�}n|ii d|d i ��t
|�d
jo�tid|d �id �}tid|�id �}x[|d
D]K}|i|�o||t
|�}n|ii dd|i��q8WnWd|iid�|ii�XdS(Ns^\s*\nR�s\n\s*$s
R¥s1.0RjRJsend-1csinsert linestartt:iis ^([ \t]*)(tretsubR3R0tundo_block_startRPRÒR7trstriptendswithR�RJRRbtsearchtgroupRXR6tundo_block_stop(R,R!RNR]tprefixtorig_base_indenttnew_base_indentR((s'/usr/lib64/python2.6/idlelib/PyShell.pyR �s,

 )cCsÙ|iidd�}t|�}x1|djo#||ddjo|d}q$W|djo#||ddjo|d}nx1|djo#||ddjo|d}q�W|| }|ii|�}dS(NRwsend-1ciis s
(R0R7RbRER1(R,RRGR'((s'/usr/lib64/python2.6/idlelib/PyShell.pyR¤�s """
cCss|iio|ii�Sy tiWn!tiddd|i�dSXddkl }||i
|i �}dS(NsNo stack traces@There is no stack trace yet.
(sys.last_traceback is not defined)RJiÿÿÿÿ(t StackBrowser( RER¶RöR�tlast_tracebackRORSR0tidlelib.StackViewerRµRR4(R,RNRµtsv((s'/usr/lib64/python2.6/idlelib/PyShell.pyRE¨s
  
cCs$|iid�|iid�dS(NRwRÉ(R0R6(R,RN((s'/usr/lib64/python2.6/idlelib/PyShell.pyRp¶scCs|ii�dS(N(RERÙ(R,RN((s'/usr/lib64/python2.6/idlelib/PyShell.pyRqºscCsk|i�ytti�}Wn
d}nX|ii|�|iidd�|i�|i i
�dS(NR�RJsend-1c( RóRZR�R�R�RR0RÒtset_line_and_columnR;t
reset_undo(R,R!((s'/usr/lib64/python2.6/idlelib/PyShell.pyRнs


cCs�|iidd�}|io|ii|�n|iid�djo|iidd�n|iidd�|i�dti_ dS(NRwsend-1csend-2cs
i(
R0R7Rvt
history_storeRJRÒR¹R�R�t softspace(R,R((s'/usr/lib64/python2.6/idlelib/PyShell.pyRóÈs

cCsvy@|iidd�ti|||d�|iidd�WnnX|iod|_tp
t�qrndS(NRwtrightRÊi(R0RÓRRRRRQRñ(R,R!R�((s'/usr/lib64/python2.6/idlelib/PyShell.pyRÒs
 (sfileRT(RURV(sdebugRW(RXRY(RZR[(shelpR](RZR^N((4R RlR�RtRR�RRcR
trunningAsOSXApptidlelib.IdleHistoryR_RR/RzR�R�RÏRRR�RòR|R}RnRRoR�R�RKRøR[R�RkR�R�R�R�RsR�R�RlRmRkRjR R¤RERpRqRÐRóR(((s'/usr/lib64/python2.6/idlelib/PyShell.pyRrsf 
 1      
             ?     
RucBs8eZdd�Zd�Zd�Zd�Zd�ZRS(cCs(||_||_d|_||_dS(Ni(R`R�R¼R/(R,R`R�R/((s'/usr/lib64/python2.6/idlelib/PyShell.pyR/às   cCs|ii||i�dS(N(R`RR�(R,R!((s'/usr/lib64/python2.6/idlelib/PyShell.pyRæscCs"x|D]}|i|�qWdS(N(R(R,R]R((s'/usr/lib64/python2.6/idlelib/PyShell.pyt
writelineséscCsdS(N((R,((s'/usr/lib64/python2.6/idlelib/PyShell.pytflushíscCstS(N(RË(R,((s'/usr/lib64/python2.6/idlelib/PyShell.pyR�ðsN(R RlRR/RRÀRÁR�(((s'/usr/lib64/python2.6/idlelib/PyShell.pyRuÞs
    s�
USAGE: idle [-deins] [-t title] [file]*
idle [-dns] [-t title] (-c cmd | -r file) [arg]*
idle [-dns] [-t title] - [arg]*

-h print this help message and exit
-n run IDLE without a subprocess (see Help/IDLE Help for details)

The following options will override the IDLE 'settings' configuration:

-e open an edit window
-i open a shell window

The following options imply -i and will open a shell:

-c cmd run the command in a shell, or
-r file run script from file

-d enable the debugger
-s run $IDLESTARTUP or $PYTHONSTARTUP before anything else
-t title set title of shell window

A default edit window will be bypassed when -c, -r, or - are used.

[arg]* are passed to the command (-c) or script (-r) in sys.argv[1:].

Examples:

idle
Open an edit window or shell depending on IDLE's configuration.

idle foo.py foobar.py
Edit the files, also open a shell if configured to start with shell.

idle -est "Baz" foo.py
Run $IDLESTARTUP or $PYTHONSTARTUP, edit foo.py, and open a shell
window with the title "Baz".

idle -c "import sys; print sys.argv" "foo"
Open a shell window and run the command, passing "-c" in sys.argv[0]
and "foo" in sys.argv[1].

idle -d -s -r foo.py "Hello World"
Open a shell window, run a startup script, enable the debugger, and
run foo.py, passing "foo.py" in sys.argv[0] and "Hello World" in
sys.argv[1].

echo "import sys; print sys.argv" | idle - "foobar"
Open a shell window, run the script piped in, passing '' in sys.argv[0]
and "foobar" in sys.argv[1].
cCs�tat}t}t}d}d}t}y#titidd�\}}WnOtij
o@}tii dt
|��tii t �ti d�nXxH|D]@\} }
| djo|
}t}n| djot}t}n| djot}t}n| djoti
i t �ti �n| d jo
t}n| d
jo
tan| d jo:|
}tii|�ond G|GHti �t}n| d
jot}t}n| djo|
t_t}q¦q¦W|o*|ddjotii�}t}nx=ttti��D]&} tiiti| �ti| <q1W|o)|ddjodg|dt_nõ|odg|t_nÚ|o|g|t_n¿|o�t}g} x'|D]}
| itii|
��qÛWx~| D]?}tii|�}|tijotiid|�qqWn4ti�}|tijotiid|�ntiddddd�}|p|}tdd�at t�ti!�t"t�a#t$i%tt#�|oI|p|p7x|D]}
t#i&|
�qW|pt#i'�q2q6n|oDt#i(�}|pdSt$i)�ot#i*o|i+i,�q�nt#i-}|o|i.�n|oWti/i0d�pti/i0d�}
|
o'tii|
�o|i1i2|
�qýn|o|p|od|i1i3dtif�|o|i1i4|�qv|o$|i1i5|�|i1i2|�qvnti6�ti7�dS(Nis c:deihnr:st:s
Error: %s
is-cs-ds-es-hs-is-ns-rsNo script file: s-ss-tit-R�RzR§seditor-on-startupR©Rªt classNametIdlet IDLESTARTUPt
PYTHONSTARTUPsbif 1:
import sys as _sys
_sys.argv = %r
del _sys

(8RËRQR�RtgetoptR�targvR¸R�RRZt usage_msgtexitR�R6R7R`RrR�RRRiRbtabspathRCtdirnameRJtgetcwdRR�RdRRReRoR4R
tsetupAppRVtnewR5R¾tdictRptlowerRDR�tenvironR7RERRêRR4R�tdestroy(t enable_shellt enable_editRHtcmdtscripttstartuptoptsR>R:totaRGtpathxRtdirt
edit_startR`((s'/usr/lib64/python2.6/idlelib/PyShell.pyRz)sÚ# 











 




 
$  


    
R�(DR6tos.pathR�tstringRÇRªR·R´Rßt tracebackR,RR#RR�t ImportErrorR÷RÊROtidlelib.EditorWindowRRtidlelib.FileListRtidlelib.ColorDelegatorRtidlelib.UndoDelegatorRtidlelib.OutputWindowRtidlelib.configHandlerRR R R
R R R
t
ascii_letterstdigitsR8R³R�tsignalRRRRRt showwarningR"Rt
checkcacheR(R)RoRtR�t RPCClientR�R�RrtobjectRuRÉRzR R�(((s'/usr/lib64/python2.6/idlelib/PyShell.pyt<module>s~            
    
 ¢ÿÊÿÆI ~