KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21571/root/usr/lib64/python2.4/idlelib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/usr/lib64/python2.4/idlelib/PyShell.pyc
m
=5Dc@sdkZdkZdkZdkZdkZdkZdkZdkZdkZdk	Z	dk
Z
dkZdkZdk
lZydkTWn-ej
o!eidIJeidnXdkZdklZlZdklZdklZdklZd	klZd
klZdkZdkZdkZdkZei ei!dZ"dZ#d
Z$ydk%l&Z&Wnej
o
dZ&nXeia'y
dk(Z(Wnej
on&XdZ)e)e(_*dZ+e+e(_,e-ei.dZ/e/e_.defdYZ0defdYZ1defdYZ2defdYZ3dei4fdYZ5defdYZ6defd YZ7d!fd"YZ8d#Z9d$Z:e;d%joei<d%ei<d<e:ndS(&N(sInteractiveInterpreter(t*sK** IDLE can't import Tkinter.  Your Python may not be configured for Tk. **i(sEditorWindows
fixwordbreaks(sFileList(sColorDelegator(s
UndoDelegator(sOutputWindow(sidleConft_s	127.0.0.1i(sSIGTERMicCsCt}y#|iti||||Wnt	j
onXdS(N(
twarning_streamtfiletwritetwarningst
formatwarningtmessagetcategorytfilenametlinenotIOError(RRR	R
R((t'/usr/lib64/python2.4/idlelib/PyShell.pytidle_showwarning;s
#cCsfd}|d||f7}ti||i}|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(
tsR	R
t	linecachetgetlinetstriptlineRt__name__R(RRR	R
RR((Rtidle_formatwarningBscCsiti}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(RtcachetsavetkeysR	torig_checkcachetupdate(R	RRR((Rtextended_linecache_checkcacheMs	
tPyShellEditorWindowcBsztZdZdZddgZdZedZedZd	Z	d
Z
dZdZd
Z
dZRS(s6Regular text edit window in IDLE, supports breakpointscGsg|_ti|||iid|i|iid|i|iid|i	i
tii
tid|_|iio|in|ii|d}|ii|dS(Ns<<set-breakpoint-here>>s<<clear-breakpoint-here>>s<<open-python-shell>>sbreakpoints.lstcCs|i|dS(N(tselftrestore_file_breakstold_hook(RR((Rtfilename_changed_hookss
(RtbreakpointstEditorWindowt__init__targsttexttbindtset_breakpoint_heretclear_breakpoint_heretflistt
open_shelltostpathtjointidleConft
GetUserCfgDirtbreakpointPathtioR	Rtfilename_change_hookRtset_filename_change_hook(RR#R((RR"hs	
sSet Breakpoints<<set-breakpoint-here>>sClear Breakpoints<<clear-breakpoint-here>>cCs|i}|ii}|idd|d|dy|ii|}Wn#t	j
o|ii
|nXy&|iii
i}|i||WnnXdS(NtBREAKs%d.0i(RR$R0R	ttag_addR
R tindextit
ValueErrortappendR(tpyshelltinterptdebuggertdebugR&(RR
R6R$R	R<((Rtset_breakpoint|s	cCsZ|i}|ii}|p|idSntt|id}|i	|dS(Ntinsert(
RR$R0R	tbelltinttfloatR5R
R=(RteventR$R	R
((RR&s	
cCs|i}|ii}|p|idSntt|id}y|i	i
|WnnX|idddy&|ii
ii}|i||WnnXdS(NR>R3sinsert linestartsinsert lineend +1char(RR$R0R	R?R@RAR5R
R tremovet
tag_removeR(R9R:R;R<R'(RRBR$R	R
R<((RR's"	
cCs|io{|i}|ii}|p|idSng|_|iddty#|ii	i
i}|i
|WqqXndS(NR3s1.0(RR R$R0R	R?RDtENDR(R9R:R;R<tclear_file_breaks(RR<R$R	((RRFs
	
	cCs|i}|ii}yt|idi}Wnt	j
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(RR tbreaksR0R	topenR/t	readlinestlinesRtnew_fileRt
startswithRtupdate_breakpointststrtclose(RRNRMR	RRJ((Rtstore_file_breakss"	
	#cCs|ii|ii}|djodSntii|i	o}t
|i	di}xb|D]V}|i|do<t|t|d}x|D]}|i|qWqcqcWndS(NRGRIi(RR$RR0R	tNoneR*R+tisfileR/RKRLRMRROtevaltlentbreakpoint_linenumberstbreakpoint_linenumberR=(RRYRMR	RRX((RRs

cCs4|i}|id}|i|}||_dS(s3Retrieves all the breakpoints in the current windowR3N(RR$t
tag_rangestrangestranges_to_linenumberstlinenumber_listR (RR[R$R]((RRPs
	cCsg}x|tdt|dD]b}tt||}tt||d}x)||jo|i	||d7}qXWqW|S(Niii(
RMtrangeRWR[R5R@RAR
tendR8(RR[R5R_RMR
((RR\s

cCs|iti|dS(s7Extend base method - clear breaks when module is closedN(RRFR!t_close(R((RR`s
(sSet Breakpoints<<set-breakpoint-here>>(sClear Breakpoints<<clear-breakpoint-here>>(Rt
__module__t__doc__R"trmenu_specsR=RTR&R'RFRSRRPR\R`(((RRes					'	
		tPyShellFileListcBs&tZdZeZeZedZRS(s8Extend base class: IDLE supports a shell and breakpointscCsZ|io|iiin6t||_|io|iipdSqSn|iS(N(RR9ttoptwakeuptPyShelltbeginRT(RRB((RR)s

(RRaRbRR!RTR9R)(((RRdstModifiedColorDelegatorcBs)tZdZdZdZdZRS(s8Extend base class: colorizer for the shell window itselfcCsti||idS(N(tColorDelegatorR"RtLoadTagDefs(R((RR"s
cCs7|iddd|idddti|dS(NtTODOs1.0tiomarktSYNC(RRDR4Rjtrecolorize_main(R((RRo"scCsti|tiddd}|iihdhdd<dd<<dti	|d<dti	|d<d	ti	|d	<dti	|d
<dS(NtmaintThemetnametstdint
backgroundt
foregroundtstdouttstderrtconsoletnormal(
RjRkRR-t	GetOptiontthemettagdefsRRTtGetHighlight(RR{((RRk's
(RRaRbR"RoRk(((RRis		tModifiedUndoDelegatorcBs&tZdZedZedZRS(s;Extend base class: forbid insert/delete before the I/O markcCsby2|ii|ddo|iidSnWntj
onXti||||dS(Nt<Rm(
RtdelegatetcompareR5R?tTclErrort
UndoDelegatorR>tcharsttags(RR5RR((RR>5s
cCs_y2|ii|ddo|iidSnWntj
onXti|||dS(NRRm(	RRRtindex1R?RRtdeletetindex2(RRR((RR>s
(RRaRbRTR>R(((RR~2s	tMyRPCClientcBstZdZRS(NcCs
tdS(s0Override the base class - just re-raise EOFErrorN(tEOFError(R((Rt
handle_EOFJs(RRaR(((RRHstModifiedInterpretercBs:tZdZdZdZdZdZdZdZ	dZ
dZdZd	Z
d
ZdZdZdZdZd
ZdZdZdZdZddZdZdZdZddZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%RS( NcCsT||_tidi}ti|d|d|_	t
|_d|_t
|_dS(Nt__main__tlocals(t	tkconsoleRtsystmodulest__dict__RtInteractiveInterpreterR"RTtsave_warnings_filterstFalset
restartingtsubprocess_arglisttPORTtport(RRR((RR"Qs				cCsN|idjo|i|_n|i}tititi	||_
dS(N(RRRTtbuild_subprocess_arglistR#R*tspawnvtP_NOWAITRt
executabletrpcpid(RR#((Rtspawn_subprocess]s	cCs|idjp
tdg}tiD]}|d|q(~}ti	ddddt
dd	}td
jod|f}nd|f}tid
 djo!dtijodti}n
ti}|g|d|t|igS(Nis/Socket should have been assigned a port number.s-WRptGeneralsdelete-exitfunctdefaultttypetboolsidlelib.PyShells&__import__('idlelib.run').run.main(%r)s__import__('run').main(%r)itwint s"%s"s-c(RRtAssertionErrort_[1]RtwarnoptionsRRHR-RzRt	del_exitfRtcommandtplatformRtdecorated_execRQ(RRRRRHRR((RRcs(

$	cCst|if}x^tdD]B}ti|yt||_	PWqt
ij
o	}qXqW|i
dS|i	iid|_tdjo#|i	iit
it
idn|i|i	iidy|i	iWn&t
ij
o}|idSnX|i	id|i|i	id|ii|i	id|ii|i	id|ii|i	id	t|i	id
||i |i!|i	S(Niiii
RsRvRwR(RR:("tHOSTRRtaddrR^R6ttimetsleepRtrpcclttsocketterrorterrtdisplay_port_binding_errorRTtlistening_socktgetsocknameRt
setsockoptt
SOL_SOCKETtSO_REUSEADDRRt
settimeouttacceptttimeouttdisplay_no_subprocess_errortregisterRRvRwR(Rt
transfer_pathtpoll_subprocess(RRRR6((Rtstart_subprocessws>

	



	

cCs|io|iSnt|_|i}|o"yti|iWqSqSXn|ii|i	|i
}|i}t|_|iy|iiWn&tij
o}|idSnX|i|iidd|o|id|int|iddd}|i|d||iidd|iidd	|i|o ti |i}|i"nt|_|iS(
NRmsend-1cs
iiRIs	 RESTART trestarttleft(#RRRtTruetgetdebuggerR<tRemoteDebuggertclose_subprocess_debuggerRRtunix_terminateRRxt	executingt
was_executingRRRRRRRRTRR$RRt
showpromptR@twidththalfbartmark_settmark_gravitytrestart_subprocess_debuggertguitload_breakpoints(RRxRRR<RR((Rtrestart_subprocesssF
	

			

	


	cCs|iiddfhdS(Ntexectinterrupt_the_server(RRt
remotecall(R((Rt__request_interruptscCstid|iidS(Nttarget(t	threadingtThreadRt'_ModifiedInterpreter__request_interrupttstart(R((Rtinterrupt_subprocessscCsJy|iiWntj
onX|it|i_d|_dS(N(	RRRRtAttributeErrorRRRRRT(R((Rtkill_subprocesss
cCszttdofyti|itWntj
odSqvXyti|idWqvtj
odSqvXndS(s;UNIX: make sure subprocess is terminated and collect statustkillNi(thasattrR*RRRtSIGTERMtOSErrortwaitpid(R((RRs	cCs|idtifdS(Nsif 1:
        import sys as _sys
        _sys.path = %r
        del _sys
        _msg = 'Use File/Exit or your end-of-file key to quit IDLE'
        __builtins__.quit = __builtins__.exit = _msg
        del _msg
        
(Rt
runcommandRR+(R((RRscCs|i}|djodSny|i|idd}WnAttt	fj
o,|i
iodSnd}|inX|o|i
i
d|_|\}}|i
i}|djo%|dj	o|t|IJqQnm|djo%|i
ido|iqQn;|djo-d}ti|I|IJ||I|IJn|i
in|i
ip#|i
ii|i
i|indS(Ntwaitf0.050000000000000003tOKt	EXCEPTIONs<<toggle-jit-stack-viewer>>tERRORs/PyShell.ModifiedInterpreter: Subprocess ERROR:
(RRtcltRTtpollresponset
active_seqtresponseRRtKeyboardInterruptRtclosingRtresetoutputthowtwhatRxtreprtgetvartremote_stack_viewerterrmsgRt
__stderr__tendexecutingR$taftertpollintervalR(RRRxRRRR((RRs:	


	




cCs
||_dS(N(R;R(RR;((RtsetdebuggerscCs|iS(N(RR;(R((RRscCs|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 exceptiopn.  It is queried through
        the RPC mechanism.

        i,N(RRR$RR(R((Rtopen_remote_stack_viewer!s	cCsdk}|iidddh}|djo|iiidSn|i	|i|}dkl}l
}t|ii}
tiddd}ti|dd	}||
d
|dd}	|	iid
ddd||	id|}|idS(NRtstackviewerR((sScrolledCanvassTreeNodeRpRqRrRyRttbgthighlightthicknessitexpanditfilltboth(sflist(tRemoteObjectBrowserRRtremotequeuetoidRTRtrootR?tStubObjectTreeItemtitemt
TreeWidgettScrolledCanvastTreeNodetToplevelReR-RzR{R}RttsctframetpacktcanvastnodeR(RRRRRtRR	R{RRRe((RR.s	
icCs#|i|}|i||dS(s1Like runsource() but assumes complete exec sourceN(RtstuffsourcetsourceR	texecfile(RRR	((Rt
execsourceAscCs|djot|di}nyt||d}Wncttfj
oQ|i
i|i
i}|dIJ|dIJti|||i
inX|i|dS(sExecute an existing fileRGRs *** Error in script or command!
s"Traceback (most recent call last):N(RRTRKR	treadtcompiletcodet
OverflowErrortSyntaxErrorRRRRwttkerrRtshowsyntaxerrorRtruncode(RR	RRR((RRFs



cCs|i|}d|_ti|_tidddt	t
|tioWdk
}y|i|i}Wqtj
o%|ii|iddSqXnzti|||SWd|idj	o|iti(d|_nXdS(sBExtend base class method: Stuff the source in the line cache firstitactionRRNsUnsupported characters in input(RRRR	tmoreRtfiltersRtfilterwarningst
SyntaxWarningt
isinstancettypestUnicodeTypet	IOBindingtencodetencodingtUnicodeErrorRRRRt	runsourceRT(RRR	R'((RR+Vs&	
	



cCsSd|i}|id|_|id}t|dd||fti|<|S(s"Stuff source in the filename caches<pyshell#%d>is
iN(	RtgidR	RtsplitRMRWRR(RRRMR	((RRks
#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(RRR	(RR	((Rtprepend_syspathssc
Cs|ii}|i}|o|\}}}}	|djod|d}nd|d|df}|i
d||i||i|}|o(|tjo|i
d|d|n|ii|idt|n|iiti|||iidS(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(RRR$tunpackerrortstufftmsgR
toffsetRtposR4tseetgettchart
IDENTCHARSRRRQRRR	R(
RR	R$R3R6R0R
R2R1R((RRs$



c
Csti\}}}	|tj}|oAy-|\}\}}}}|p
d}nWqid}qiXn|o||||fSndSdS(Ni(
Rtexc_infoRtvaluettbRtokR1tdummy_filenameR
R2RRT(
RR;RRR9R
R2R1R<R:((RR/scCsL|ii|iti||iido|iindS(s1Extend base class method to reset output properlys<<toggle-jit-stack-viewer>>N(RRRtchecklinecacheRt
showtracebackRtopen_stack_viewer(R((RR>s


cCsHti}x8|iD]*}|d |ddjo||=qqWdS(Niis<>(RRtcRtkey(RR@RA((RR=s
	
cBsX|iio|idSn|io |iidd|fhn||iUdS(s*Run the code without invoking the debuggeriRRiN(RRRtdisplay_executing_dialogRRRR(RR((RRs


 cBsR|iio|iin|i|idj	o|iei	(d|_n|i
}z|iiyj|o5|idj	o%|ii
dd|fh|_n*|o|i||in||iUWnYej
o=eiddddd|iioq1|in|inXWdep|iinXdS(	sOverride base class methodRRsExit?sDo you want to exit altogether?RtyestmasterN(RRRR:RR=RRTRR!R;tbeginexecutingRt
asyncqueueRRtrunRt
SystemExitttkMessageBoxtaskyesnoR$R>tuse_subprocessR(RRR;((RRs:



	
	cCs|iii|dS(sOverride base class methodN(RRRwRR(RR((RRscCs 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.RD(RIt	showerrorRRR$(R((RRs	cCs 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.RD(RIRLRRR$(R((RRs	cCs tiddd|iidS(NsAlready executingsYThe Python Shell window is already executing a command; please wait until it is finished.RD(RIRLRRR$(R((RRBs	(&RRaR"RTRRRRRRRRRRRRRR;RRRRR,RRR+RR.RR/R>R=RRRRRRB(((RROsF					*	,						
	#			
										"			RgcBstZdZeZeZd1d2d3d4d5d6gZdkl	Z	ddZdZe
Ze
Ze
Ze
Ze
ZdZdZddZdZddZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%dd$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,dd+Z-dd,Z.dd-Z/d.Z0d/Z1fd0Z2RS(7NsPython ShellRt_Fileteditt_EditR<t_Debugtoptionst_Optionstwindowst_Windowsthelpt_Help(sHistorycCsvto6|i}|dddjo|iddq=nt||_|djo-t	}t||it
|}nti||dddk}d|_|_|idddd	d
d|i}|idd|id
|i|id|i|id|i|id|i|id|i|id|i|id|i|id|ito*|id|i|id|i nt!i"|_#t!i$|_%t!i&|_'dk(}t)|d|i*|_"t)|d|i*|_$t)|d|i*|_+tp%|i"t!_"|i$t!_$|t!_&n|i,|i|_-d|_.dS(Niitshellt_ShellsTo exit, type Ctrl-D.tusetabsitindentwidthitcontext_use_ps1twrapR6s<<newline-and-indent>>s<<plain-newline-and-indent>>s<<interrupt-execution>>s<<beginning-of-line>>s<<end-of-file>>s<<open-stack-viewer>>s<<toggle-debugger>>s<<toggle-jit-stack-viewer>>s<<view-restart>>s<<restart-shell>>RvRwRxi2(sshellRX(/RKRt
menu_specstmsR>RR:R(RTtTkRt
fixwordbreakstwithdrawRdtOutputWindowR"t__builtin__tquittexittconfigR$t	configureR%tenter_callbacktlinefeed_callbacktcancel_callbackt
home_callbackteof_callbackR?ttoggle_debuggerttoggle_jit_stack_viewertview_restart_markt
restart_shellRRvtsave_stdoutRwtsave_stderrRst
save_stdinR't
PseudoFileR)RxtHistorythistoryR(RR(R$RcR^RR'((RR"sP	
	

			
cCstidtS(Nt
shell_only(R-t
GetExtensionsR(R((Rtget_standard_extension_namesKscCs
|adS(N(tstreamR(RRz((Rtset_warning_streamTscCstS(N(R(R((Rtget_warning_streamXscCsg|io+tiddd|i|idSn/|ii}|o|i	n|i
dS(NsDon't debug nows*You can only toggle the debugger when idleRDtbreak(RRRIRLR$tset_debugger_indicatorR:Rtdbtclose_debuggert
open_debugger(RRBR((RRm[s
	

cCs%|ii}|id|dS(Ns<<toggle-debugger>>(RR:RRtsetvar(RR((RR~iscCsdS(N((RRB((RRnmscCs|ii}|oo|iid|i|iioti	|iin|i
|iiddt
_|in|idS(Ns[DEBUG OFF]
s>>> (RR:RRRRTRRRRtclose_remote_debuggerRRxRRtps1RR~(RR((RRps


	cCss|iioti|ii|}nti|}|ii||idt	_
|i|idS(Ns[DEBUG ON]
>>> (
RR:RRtstart_remote_debuggertdbg_guitDebuggerRRRRRR~(RR((RR}s


	
cCs|id|_dS(sHelper for ModifiedInterpreteriN(RRR(R((RREs
cCs d|_d|_|idS(sHelper for ModifiedInterpreteriN(RRtcanceledR(R((RRs		cCs|io:tiddddd|i}|tjodSqDn|io|ii	nt
|_t
|_|ii
d|i|idS(	sExtend EditorWindow.close()sKill?s6The program is still running!
 Do you want to kill it?RR;tparenttcanceliN(RRRItaskokcancelR$RRtreadingReRdRRRRRtclose2(RR((RRRs
	

		cCs
ti|S(N(R!RRR(R((RRscCs~|ito|iin|it_|it_	|i
t_d|_d|_
d|i_d|_ti|dS(sEExtend EditorWindow._close(), shut down debugger and execution serverN(RRRKR:RRqRRvRrRwRsRsRTRxR(R9RvR!R`(R((RR`s
			cCstS(s8Override EditorWindow method: never remove the colorizerN(R(RR	((RtispythonsourcescCs|iS(N(Rtshell_title(R((Rtshort_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|ito2d}|ii}|p|itSqInd}|i	dt
it
i|i
|iti|f|idk}d|_tS(Nts==== No Subprocess ====s&Python %s on %s
%s
%s
IDLE %s      %s
(RRRKtnosubR:RtclientRRRRRtversionRt	COPYRIGHTtfirewallmessagetidlevertIDLE_VERSIONRtTkinterRTt
_default_rootR(RRRR((RRhs

2
		cCs|i}zd|_|iiWd||_X|iidd}t|djo
d}nt	|t
o9dk}y|i|i
}Wqtj
oqXn|i|iod|_tp
tqn|iod|_d}n|S(NiRmsend-1cis
R(RRRRetmainloopR$R5RRWR$tunicodeR'R(R)R*RRRKRt	endoffile(RRRR'((Rtreadlines0		

		

	
	
cCstS(N(R(R((RtisattyscCsy%|iidddodSnWnnX|ip|ip,|i|iid|idSnd|_	d|_
|io?|iio2|iio|ii
q|iin|io|iindS(Ns	sel.firsts!=ssel.lastsKeyboardInterrupt
R}ii(RR$RRRRR:RRRRRRRRReRd(RRB((RRjs&

		
cCs|io|iodSn|iidddo|iidddpdSn|ip|i|in d|_d|_|i	i
dS(NRms==R>send-1ciiR}(RRRR$RRRRRRReRd(RRB((RRls2

		
cCs|idjo|idjodSn|iidddoZ|iidddoA|iidd|iiddd	|iidd
SndS(NitHomeRms<=R>sinsert linestarttsels1.0R_R}(	RBtstatetkeysymRR$RRRDR4(RRB((RRks 2cCsB|io'|iidd|iidn|i|dS(NR>s
R}(RRR$R>R4tnewline_and_indent_eventRB(RRB((RRi)s


cCs|io|iodSnyR|iidd}|o2|iidddo|i|dSqnnWnnX|iidddo.|iid	d}|oI|iidd|d
o,|i|ii|d|d
dSn|ii
d	d}|oI|iidd
|do,|i|ii|d|d
dSn|iidd}t
iidd}|i|o|t|}n|i|dSn|iidddo|iiddn|iidd}|o%|io|iiddn|iidddo|i|dSn|iidd|io'|iidd|iidn|i||iid	dd|ii|io|iin|idS(Ns	sel.firstssel.lasts<=RmR}R>Rsiomark linestartRsiisinsert lineends>=sinsert linestarts
isend-1csend-1c linestart( RRRR$R5RRtrecallt
tag_prevrangetprevt
tag_nextrangetnextRRRR-tlast_line_of_promptRORWRRRRRRBR>R4R4tupdate_idletasksReRdtrunit(RRBRRRRRR((RRh2sX
$$$$






cCs"|io|ii|ndS(N(RRvRR(RR((RRps
cCs|iidd}t|}x1|djo#||ddjo|d}q$W|djo#||ddjo|d}nx1|djo#||ddjo|d}qW|| }|ii|}dS(NRmsend-1ciis 	s
(	RR$R5RRWR6R:R+R (RR6RR ((RRts"""
cCsv|iio|iiSnytiWn$tiddd|idSnXdk	l
}||i|i}dS(NsNo stack traces@There is no stack trace yet.
(sys.last_traceback is not defined)RD(sStackBrowser(RR:RRRtlast_tracebackRIRLR$tStackViewertStackBrowserRR(tsv(RRBRR((RR?s
	

cCs$|iid|iiddS(NRmR(RR$R4(RRB((RRoscCs|iidS(N(RR:R(RRB((RRpscCsk|iytti}Wn
d}nX|ii||ii	dd|i
|iidS(NRR>send-1c(
RRRQRRRRxRR$Rtset_line_and_columnR0t
reset_undo(RR((RRs


cCs|iidd}|io|ii|n|iiddjo|iiddn|iidd|idt	i
_dS(NRmsend-1csend-2cs
i(RR$R5RRvt
history_storeR>RRRRvt	softspace(RR((RRs

cCsvy@|iiddti|||d|iiddWnnX|iod|_tp
t	qrndS(NRmtrightRi(
RR$RRbRRRRRKR(RRR((RRs
	(sfileRM(RNRO(sdebugRP(RQRR(RSRT(shelpRV(3RRaRRiRjR~RR]tIdleHistoryRuRTR"RyRRRRRRR{R|RmR~RnRRRERRRRR`RRRRRhRRRjRlRkRiRhRRR?RoRpRRR(((RRgsX

1					
														
			>				
RtcBs8tZddZdZdZdZdZRS(NcCs(||_||_d|_||_dS(Ni(RWRRRR)(RRWRR)((RR"s			cCs|ii||idS(N(RRWRRR(RR((RRscCst|i|dS(N(tmapRRtl(RR((Rt
writelinesscCsdS(N((R((RtflushscCstS(N(R(R((RRs(RRaRTR"RRRR(((RRts
			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}yt
iWntj
odt
_nXy#t
i
t
idd\}}WnOt
ij
o@}t
iidt|t
iitt
idnXxH|D]@\}
}
|
djo|
}t}n|
djot}t}n|
djot}t}n|
d	jot
iitt
in|
d
jo
t}n|
djo
tan|
djo:|
}tii|ond
G|GHt
it}n|
djot}t}n|
djo|
t_t}qqW|o*|ddjot
i i!}t}nx=t"t#t
iD]&}tii%t
i|t
i|<q[W|o)|ddjodg|dt
_n|odg|t
_n|o|g|t
_n|ot}g}x'|D]}|i(tii)|qWx~|D]?}tii%|}|t
ijot
ii+d|q/q/Wn4ti,}|t
ijot
ii+d|nt-i.ddddd}	|p|	}t0dda1t2t1t1i3t4t1a5|oI|p|p7x|D]}t5i6|qW|pt5i7qLqPn|ot5i8pdSqpnt5i9}|o|i;n|oWti<i=dpti<i=d}|o'tii|o|i>i?|qn|o|p|od|i>i@dt
if|o|i>iA|qe|o$|i>iB||i>i?|qent1iCt1iDdS(Ns>>> isc:deihnr:st:s
Error: %s
is-cs-ds-es-hs-is-ns-rsNo script file: s-ss-tit-RRpRseditor-on-startupRRt	classNametIdletIDLESTARTUPt
PYTHONSTARTUPsbif 1:
            import sys as _sys
            _sys.argv = %r
            del _sys
            
(ERRKtenable_shellRtenable_editR<RTtcmdtscripttstartupRRRtgetopttargvtoptsR#RR1RwRRQt	usage_msgRetotaRvR*R+RURgRRsRR^RWR6tabspathtpathxR	R8tdirnametdirR>tgetcwdR-Rzt
edit_startR_RR`RaRdR(RKtnewR)R9RWRtenvironR5R:RRRR.Rtdestroy(RRRRR	R1RWR#RRRR6RRRR<R((RRps#











	




	
$



	%
R(=R*tos.pathRtstringRtreRRRt	tracebackR%t
exceptionsRRRRtImportErrorRReRIR!R`tFileListRjRRbt
configHandlerR-RtrpcRRt
ascii_letterstdigitsR7RRtsignalRRRR
tshowwarningRRRTt
checkcacheRRRdRiR~t	RPCClientRRRgRtRRpRR(+R`RRiRR~RRR7RRRRRRgRRRRpRRdR
RRRR!RRRRRbR%RRtRRRR-RRjRIRRR*((Rt?s~													

	




					
						5	u


Anon7 - 2021