config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/PyShell.pyc

hRc(@s6ddkZddkZddkZddkZddkZddkZddkZddkZddkZddk	Z	ddk
Z
ddkZddkZddk
lZyddkTWn-ej
o!eidIJeidnXddkZddklZlZddklZddklZdd	klZdd
klZddklZddkZddkZddkZddkZei ei!dZ"d
Z#yddk$l%Z%Wnej
o
dZ%nXeia&yddk'Z'Wnej
on&XdZ(e(e'_)dZ*e*e'_+e,ei-dZ.e.e_-defdYZ/defdYZ0defdYZ1defdYZ2dei3fdYZ4defdYZ5defd YZ6d!e7fd"YZ8d#Z9d$Z:e;d%joei<d%ei<d<e:ndS(&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(tidleConft_s	127.0.0.1(tSIGTERMic	CsCt}y#|iti||||Wntj
onXdS(N(twarning_streamtwritetwarningst
formatwarningtIOError(tmessagetcategorytfilenametlinenotfile((s+/usr/local/lib/python2.5/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
>>> (t	linecachetgetlinetstript__name__(RRRRtstline((s+/usr/local/lib/python2.5/idlelib/PyShell.pytidle_formatwarningAscCsiti}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_checkcacheRtsave((s+/usr/local/lib/python2.5/idlelib/PyShell.pytextended_linecache_checkcacheLs	
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/local/lib/python2.5/idlelib/PyShell.pytfilename_changed_hookrs
(tbreakpointsRt__init__ttexttbindtset_breakpoint_heretclear_breakpoint_heretflistt
open_shelltostpathtjoinRt
GetUserCfgDirtbreakpointPathtioRR$tfilename_change_hooktset_filename_change_hook(R&targsR'((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR)gs	
	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(
R*R5Rttag_addR(tindext
ValueErrortappendR.tpyshelltinterptdebuggerR,(R&RR*Rtitdebug((s+/usr/local/lib/python2.5/idlelib/PyShell.pytset_breakpoint{s	cCsZ|i}|ii}|p|idSntt|id}|i|dS(Ntinsert(R*R5RtbelltinttfloatR;RC(R&teventR*RR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR,s	
c	Cs|i}|ii}|p|idSntt|id}y|ii|WnnX|i	dddy&|i
iii
}|i||WnnXdS(NRDR9sinsert linestartsinsert lineend +1char(R*R5RRERFRGR;R(tremovet
tag_removeR.R>R?R@R-(R&RHR*RRRB((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR-s"	
cCs|io{|i}|ii}|p|idSng|_|iddty#|iii	i
}|i|WqqXndS(NR9s1.0(R(R*R5RRERJtENDR.R>R?R@tclear_file_breaks(R&R*RRB((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRLs
	
	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(R5RtopenR4t	readlinesRt
startswithRtupdate_breakpointststrtclose(R&tbreaksRtlinestnew_fileR((s+/usr/local/lib/python2.5/idlelib/PyShell.pytstore_file_breakss 	
	#cCs|ii|ii}|djodSntii|io}t	|idi
}xb|D]V}|i|do<t|t
|d}x|D]}|i|qWqcqcWndS(NRMROi(R*RR5RtNoneR0R1tisfileR4RPRQRRtevaltlenRC(R&RRWRtbreakpoint_linenumberstbreakpoint_linenumber((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR$s

cCs4|i}|id}|i|}||_dS(s3Retrieves all the breakpoints in the current windowR9N(R*t
tag_rangestranges_to_linenumbersR((R&R*trangestlinenumber_list((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRSs	cCsg}x|tdt|dD]b}tt||}tt||d}x)||jo|i||d7}qXWqW|S(Niii(trangeR]RFRGR=(R&RbRWR;Rtend((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRas

cCs|iti|dS(s7Extend base method - clear breaks when module is closedN(RLRt_close(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRfs
(sSet Breakpoints<<set-breakpoint-here>>(sClear Breakpoints<<clear-breakpoint-here>>N(Rt
__module__t__doc__R)trmenu_specsRCRZR,R-RLRYR$RSRaRf(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR#ds						'	
		tPyShellFileListcBs&eZdZeZdZddZRS(s8Extend base class: IDLE supports a shell and breakpointscCsZ|io|iiin6t||_|io|iipdSqSn|iS(N(R>ttoptwakeuptPyShelltbeginRZ(R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR/s

N(RRgRhR#RRZR>R/(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRjstModifiedColorDelegatorcBs)eZdZdZdZdZRS(s8Extend base class: colorizer for the shell window itselfcCsti||idS(N(RR)tLoadTagDefs(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR)s
cCs7|iddd|idddti|dS(NtTODOs1.0tiomarktSYNC(RJR:Rtrecolorize_main(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRt!scCsti|tiddd}|iihhdd<dd<d<ti|dd<ti|dd<ti|d	d	<ti|d
d<dS(NtmaintThemetnamet
backgroundt
foregroundtstdintstdouttstderrtconsoletnormal(RRpRt	GetOptionttagdefsRRZtGetHighlight(R&ttheme((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRp&s

(RRgRhR)RtRp(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRos		tModifiedUndoDelegatorcBs&eZdZddZddZRS(s;Extend base class: forbid insert/delete before the I/O markcCsby2|ii|ddo|iidSnWntj
onXti||||dS(Nt<Rr(tdelegatetcompareREtTclErrorRRD(R&R;tcharsttags((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRD4s
cCs_y2|ii|ddo|iidSnWntj
onXti|||dS(NRRr(RRRERRtdelete(R&tindex1tindex2((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR=s
N(RRgRhRZRDR(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR1s	tMyRPCClientcBseZdZRS(cCs
tdS(s0Override the base class - just re-raise EOFErrorN(tEOFError(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyt
handle_EOFIs(RRgR(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRGstModifiedInterpretercBs@eZdZdZd Zd ZdZdZdZ	dZ
dZdZdZ
d	Zd
Zd ZdZd ZdZd
ZdZdZdZdZd dZdZdZdZd dZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&RS(!cCsQ||_tidi}ti|d|d|_t|_	|i
|_dS(Nt__main__tlocals(t	tkconsoletsystmodulest__dict__RR)RZtsave_warnings_filterstFalset
restartingtbuild_subprocess_arglisttsubprocess_arglist(R&RR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR)Ps			i"cCs+|i}tititi||_dS(N(RR0tspawnvtP_NOWAITRt
executabletrpcpid(R&R8((s+/usr/local/lib/python2.5/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-QnewRutGeneralsdelete-exitfunctdefaultttypetboolsidlelib.PyShells&__import__('idlelib.run').run.main(%r)s__import__('run').main(%r)itwint s"%s"s-c(RtwarnoptionsR=RRRRtplatformRRTtport(R&t_[1]RRNt	del_exitftcommandtdecorated_exec((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR`s(

$	cCsi|it|if}x^tdD]B}ti|yt||_PWq&ti	j
o	}q&Xq&W|i
dS|iii
dy|iiWn&tij
o}|idSnX|iid|i|iid|ii|iid|ii|iid|ii|iidt|iid||i|i|iS(	Nii
RzR{R|R.RR?(Rt	LOCALHOSTRRdttimetsleepRtrpcclttsocketterrortdisplay_port_binding_errorRZtlistening_sockt
settimeouttacceptttimeouttdisplay_no_subprocess_errortregisterRR{R|R.Rt
transfer_pathtpoll_subprocess(R&taddrRAterr((s+/usr/local/lib/python2.5/idlelib/PyShell.pytstart_subprocessts6


	

	

c	Cs|io|iSnt|_|i}|o"yti|iWqSqSXn|ii|i|i}|i	}t
|_	|iy|iiWn&t
ij
o}|idSnX|i|iidd|o|id|int|iddd}|i|d||iidd|iidd	|i|o ti|i}|int
|_|iS(
NRrsend-1cs
iiROs	 RESTART trestarttleft(RRtTruetgetdebuggertRemoteDebuggertclose_subprocess_debuggerRUtunix_terminateRt	executingRRRRRRRZRR*RRt
showpromptRFtwidthtmark_settmark_gravitytrestart_subprocess_debuggertload_breakpoints(R&RBR}t
was_executingRthalfbartgui((s+/usr/local/lib/python2.5/idlelib/PyShell.pytrestart_subprocesssF
	

			

	


	cCs|iidddhdS(Ntexectinterrupt_the_server((Rt
remotecall(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyt__request_interruptscCstid|iidS(Nttarget(t	threadingtThreadt'_ModifiedInterpreter__request_interrupttstart(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pytinterrupt_subprocessscCsJy|iiWntj
onX|it|i_d|_dS(N(RRUtAttributeErrorRRRRRZ(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pytkill_subprocesss
c	Cszttdofyti|itWntj
odSqvXyti|idWqvtj
odSqvXndS(s;UNIX: make sure subprocess is terminated and collect statustkillNi(thasattrR0RRR
tOSErrortwaitpid(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs	cCs|idtifdS(NsRif 1:
        import sys as _sys
        _sys.path = %r
        del _sys
        
(t
runcommandRR1(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRsc	Cs|i}|djodSny|i|idd}WnAtttfj
o,|iiodSnd}|i	nX|o|ii
d|_|\}}|ii}|djo%|dj	o|t|IJqQnm|djo%|ii
do|iqQn;|djo-d}ti|I|IJ||I|IJny|iiWq|tj
oq|Xn|iip#|iii|ii|indS(Ntwaitg?tOKt	EXCEPTIONs<<toggle-jit-stack-viewer>>tERRORs/PyShell.ModifiedInterpreter: Subprocess ERROR:
(RRZtpollresponset
active_seqRRtKeyboardInterruptRtclosingRtresetoutputR}treprtgetvartremote_stack_viewerRt
__stderr__tendexecutingRR*taftertpollintervalR(R&tclttresponsethowtwhatR}terrmsg((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs@	


	



	
cCs
||_dS(N(R@(R&R@((s+/usr/local/lib/python2.5/idlelib/PyShell.pytsetdebuggerscCs|iS(N(R@(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRscCs|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(RR*RR(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pytopen_remote_stack_viewers
cCsddk}|iidddh}|djo|iiidSn|i|i|}ddkl	}l
}t|ii}ti
ddd}ti|d	d
}||d|dd
}	|	iidddd||	id|}
|
idS(NiRtstackviewerR.(tScrolledCanvastTreeNodeRuRvRwR~Rxtbgthighlightthicknessitexpanditfilltboth(sflist(tRemoteObjectBrowserRtremotequeueRZRtrootREtStubObjectTreeItemt
TreeWidgetRRtToplevelRRRtframetpacktcanvasR(R&RtoidtitemRRRkRRxtsctnode((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR"s
icCs#|i|}|i||dS(s1Like runsource() but assumes complete exec sourceN(tstuffsourcetexecfile(R&tsourceR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyt
execsource5scCs|djot|di}nyt||d}Wncttfj
oQ|ii|ii}|dIJ|dIJt	i
|||iinX|i|dS(sExecute an existing fileRMRs *** Error in script or command!
s"Traceback (most recent call last):N(
RZRPtreadtcompilet
OverflowErrortSyntaxErrorRRR|RtshowsyntaxerrorRtruncode(R&RRtcodettkerr((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR:s



cCs|i|}d|_ti|_tidddtt|ti	oZddk
}y|i|i}Wqt
j
o%|ii|iddSqXnzti|||SWd|idj	o|iti(d|_nXdS(sBExtend base class method: Stuff the source in the line cache firstitactionRRiNs Unsupported characters in input
(RtmoreR
tfiltersRtfilterwarningst
SyntaxWarningt
isinstancettypestUnicodeTypet	IOBindingtencodetencodingtUnicodeErrorRRRRt	runsourceRZ(R&RRR#((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR'Js"	




cCsSd|i}|id|_|id}t|dd||fti|<|S(s"Stuff source in the filename caches<pyshell#%d>is
i(tgidtsplitR]RR(R&RRRW((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRas

#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/local/lib/python2.5/idlelib/PyShell.pytprepend_syspathisc
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(
RR*tunpackerrorR:tseetgett
IDENTCHARSRRRTRRR(
R&RR*tstufftmsgRtoffsetRtpostchar((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRus$



c
Csti\}}}|tj}|oAy-|\}\}}}}	|p
d}nWqid}qiXn|o||||	fSndSdS(Ni(Rtexc_infoRRZ(
R&RtvaluettbtokR0tdummy_filenameRR1R((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR+s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/local/lib/python2.5/idlelib/PyShell.pyR:s



cCsHti}x8|iD]*}|d |ddjo||=qqWdS(Niis<>(RRR(R&tctkey((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR9s
	
cBsX|iio|idSn|io |iidd|fhn||iUdS(s*Run the code without invoking the debuggeriRRi(RRtdisplay_executing_dialogRRR(R&R((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs


 cBs|iio|iin|i|id	j	o|iei(d	|_n|i	}z|ii
yj|o5|id	j	o%|iidd|fh|_
n*|o|i||in||iUWnej
oQ|iip:eiddddd|iioq0|iqxnEto|iidIJn|ito|iiqxnXWd	tp+y|iiWqej
oqXnXd	S(
sOverride base class methodRRsExit?sDo you want to exit altogether?Rtyestmasters IDLE internal error in runcode()N(RRR?RR9RRZR
RR@tbeginexecutingRt
asyncqueueRtrunRt
SystemExitRttkMessageBoxtaskyesnoR*R:tuse_subprocessR|RR(R&RR@((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRsL



	




cCs|iii|dS(sOverride base class methodN(RR|R(R&R((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRscCs tiddd|iidS(NsPort Binding ErrorsgIDLE can't bind TCP/IP port 8833, which is necessary to communicate with its Python execution server.  Either no networking is installed on this computer or another process (another IDLE?) is using the port.  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.R@(REt	showerrorRR*(R&((s+/usr/local/lib/python2.5/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.R@(RERHRR*(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRscCs tiddd|iidS(NsAlready executingsYThe Python Shell window is already executing a command; please wait until it is finished.R@(RERHRR*(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR>sN('RRgR)RRZRRRRRRRRRRRRRR@RRRRR(RRR'RR*RR+R:R9RRRRRR>(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRNsH				!	,							&			
										-			RmcBseZdZeZeZd4d5d6d7d8d9gZei	oed
=d:ed<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-Z.d;d.Z/d;d/Z0d;d0Z1d1Z2d2Z3d<d3Z4RS(=sPython ShellRt_Fileteditt_EditRBt_Debugtoptionst_Optionstwindowst_Windowsthelpt_Helpit_Windowii(tHistorycCs_to6|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|i|id|ito*|id|i|id|inti|_ti |_!ti"|_#ddk$}t%|d|i&|_t%|d|i&|_ t%|d|i&|_'tp%|it_|i t_ |t_"n|i(|i|_)d|_*dS(NiitshelltShe_llitwrapR3s<<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>>iR{R|R}i2(sshellRV(+RGt
menu_specsRDRR?RZtTkRtwithdrawRjRR)Rtusetabstindentwidthtcontext_use_ps1R*t	configureR+tenter_callbacktlinefeed_callbacktcancel_callbackt
home_callbackteof_callbackR;ttoggle_debuggerttoggle_jit_stack_viewertview_restart_markt
restart_shellRR{tsave_stdoutR|tsave_stderrRzt
save_stdinR#t
PseudoFileR%R}RTthistoryR(R&R.tmsRR*R#((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR)!sP	
	

				
cCstidtS(Nt
shell_only(Rt
GetExtensionsR(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pytget_standard_extension_namesSscCs
|adS(N(R(R&tstream((s+/usr/local/lib/python2.5/idlelib/PyShell.pytset_warning_stream\scCstS(N(R(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pytget_warning_stream`scCsg|io+tiddd|i|idSn/|ii}|o|in|idS(NsDon't debug nows*You can only toggle the debugger when idleR@tbreak(	RRERHR*tset_debugger_indicatorR?Rtclose_debuggert
open_debugger(R&RHtdb((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRdcs
	

cCs%|ii}|id|dS(Ns<<toggle-debugger>>(R?Rtsetvar(R&Rx((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRuqscCsdS(N((R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyReuscCs|ii}|oo|iid|i|iioti|iin|i|i	i
ddt_|i
n|idS(Ns[DEBUG OFF]
s>>> (R?RRRZRURRtclose_remote_debuggerRR}RRtps1RRu(R&Rx((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRvxs


	cCss|iioti|ii|}nti|}|ii||idt_|i	|i
dS(Ns[DEBUG ON]
>>> (R?RRtstart_remote_debuggertDebuggerRRRR{RRu(R&tdbg_gui((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRws


	
cCs|id|_dS(sHelper for ModifiedInterpreteriN(RR(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRAs
cCs d|_d|_|idS(sHelper for ModifiedInterpreteriN(RtcanceledR(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs		cCs|io:tiddddd|i}|tjodSqDn|io|iint|_	t|_
|iid|i|i
dS(	sExtend EditorWindow.close()sKill?s6The program is still running!
 Do you want to kill it?RR7tparenttcanceliN(RREtaskokcancelR*RtreadingRktquitRRRRRtclose2(R&R((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRUs


		cCs
ti|S(N(RRU(R&((s+/usr/local/lib/python2.5/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(RvRGR?RRhRR{RiR|RjRzRZR}R.R>RlRRf(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRfs
			cCstS(s8Override EditorWindow method: never remove the colorizer(R(R&R((s+/usr/local/lib/python2.5/idlelib/PyShell.pytispythonsourcescCs|iS(N(tshell_title(R&((s+/usr/local/lib/python2.5/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|ito2d}|ii}|p|itSqInd}|idtiti	|i
|iti
|f|iddk}d|_tS(Nts==== No Subprocess ====s&Python %s on %s
%s
%s
IDLE %s      %s
i(RRGR?RRURRRtversionRt	COPYRIGHTtfirewallmessagetidlevertIDLE_VERSIONRtTkinterRZt
_default_rootR(R&tnosubtclientR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRns

	
	c	Cs|i}zd|_|iiWd||_X|iidd}t|djo
d}nt|to<ddk}y|i	|i
}Wqtj
oqXn|i|i
od|_
tp
tqn|iod|_d}n|S(NiRrsend-1cis
iR(RRktmainloopR*R-R]R tunicodeR#R$R%R&RRRGRt	endoffile(R&R!RR#((s+/usr/local/lib/python2.5/idlelib/PyShell.pytreadlines.		

	

	
	
cCstS(N(R(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pytisattyscCsy%|iidddodSnWnnX|ip|ip,|i|iid|idSnd|_d|_	|io?|ii
o2|iio|iiq|ii
n|io|iindS(Ns	sel.firsts!=ssel.lastsKeyboardInterrupt
Rtii(R*RRRRR?RRRRRRRRRkR(R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRas&

		
cCs|io|iodSn|iidddo|iidddpdSn|ip|i|in d|_d|_|ii	dS(NRrs==RDsend-1ciiRt(
RRR*RRRURRRkR(R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRcs

		
cCs|idjo|idjodSn|iidddoZ|iidddoA|iidd|iiddd	|iidd
SndS(NitHomeRrs<=RDsinsert linestarttsels1.0ReRt(tstatetkeysymR*RRRJR,(R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRb's cCsB|io'|iidd|iidn|i|dS(NRDs
Rt(RR*RDR,tnewline_and_indent_event(R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR`1s


cCs(|io|iodSnyU|iidd}|o5|iidddo|i||dSqqnWnnX|iidddoW|iid	d}|oL|iidd|d
o/|i|ii|d|d
|dSn|iid	d}|oL|iidd
|do/|i|ii|d|d
|dSn|iidd}|oD|ii|dddo'|i|ii|d
d|n |i|iidd|dSn|iidddo|iiddn|iidd}|o%|i	o|ii
ddn|iidddo|i|dSn|iidd|io'|iidd|ii
dn|i||iid	dd|ii|io|iin|idS(Ns	sel.firstssel.lasts<=RrRtRDRsiomark linestartRziisinsert lineends>=R}sinsert linestartsend-1csend-1c linestarts
(RRR*R-Rtrecallt
tag_prevranget
tag_nextrangeRRRRRDR,R:tupdate_idletasksRkRtrunit(R&RHRtprevtnexttindicesR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR_:sX$'$''





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.0ReRDsend-1csinsert linestartt:iis	^([ \t]*)(tretsubR)R*tundo_block_startRJRR-trstriptendswithRRDRR]tsearchtgroupRRR,tundo_block_stop(R&RRHRWtprefixtorig_base_indenttnew_base_indentR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRys,

)cCs|iidd}t|}x1|djo#||ddjo|d}q$W|djo#||ddjo|d}nx1|djo#||ddjo|d}qW|| }|ii|}dS(NRrsend-1ciis 	s
(R*R-R]R?R'(R&RRAR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs"""
cCsy|iio|iiSnytiWn$tiddd|idSnXddkl	}||i
|i}dS(NsNo stack traces@There is no stack trace yet.
(sys.last_traceback is not defined)R@i(tStackBrowser(R?RRRtlast_tracebackRERHR*tStackViewerRRR.(R&RHRtsv((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR;s
	
cCs$|iid|iiddS(NRrR(R*R,(R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRfscCs|iidS(N(R?R(R&RH((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRgscCsk|iytti}Wn
d}nX|ii||iidd|i|i	i
dS(NRRDsend-1c(RRTRR{R}RR*Rtset_line_and_columnR5t
reset_undo(R&R((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs


cCs|iidd}|io|ii|n|iiddjo|iiddn|iidd|idti_	dS(NRrsend-1csend-2cs
i(
R*R-Rlt
history_storeRDRRRR{t	softspace(R&R((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs

cCsvy@|iiddti|||d|iiddWnnX|iod|_tp
tqrndS(NRrtrightRi(R*RRRRRGR(R&RR((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRs
	(sfileRI(RJRK(sdebugRL(RMRN(RORP(shelpRR(RORSN((5RRgRRoRRRRXt
macosxSupporttrunningAsOSXApptIdleHistoryRTRZR)RpRRRRRRRrRsRdRuReRvRwRARRURRfRRRRRnRRRaRcRbR`R_RRR;RfRgRRR(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRmsh	
2					
														
			?				
RkcBs8eZddZdZdZdZdZRS(cCs(||_||_d|_||_dS(Ni(RURRR%(R&RURR%((s+/usr/local/lib/python2.5/idlelib/PyShell.pyR)s			cCs|ii||idS(N(RURR(R&R((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRscCst|i|dS(N(tmapR(R&tl((s+/usr/local/lib/python2.5/idlelib/PyShell.pyt
writelinesscCsdS(N((R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pytflushscCstS(N(R(R&((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRsN(RRgRZR)RRRR(((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRks
			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dnXxB|D]:\}	}
|	djo|
}t}n|	djot}t}n|	djo
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|<q+W|o)|ddjodg|dt_n|odg|t_n|o|g|t_n|ot}g}x'|D]}
|itii|
qWx~|D]?}tii|}|tijotiid|qqWn4ti}|tijotiid|ntiddddd}|p|}|p|}tddat tti!t"ta#t$i%tt#|oI|p|p7x|D]}
t#i&|
q
W|pt#i'q:q>n|oGt#i(}|pdSnt$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|q|o$|i1i5||i1i2|qnti6ti7dS(Nisc:deihnr:st:s
Error: %s
is-cs-ds-es-hs-is-ns-rsNo script file: s-ss-tit-RRuRseditor-on-startupRRt	classNametIdletIDLESTARTUPt
PYTHONSTARTUPsbif 1:
            import sys as _sys
            _sys.argv = %r
            del _sys
            
(8RRGRRZtgetoptRtargvRR|RRTt	usage_msgtexitR{R0R1R[RmRRzRRdR]tabspathR=tdirnameRDtgetcwdRRRYRRRZRjR.RtsetupAppRPtnewR/RtdictRktlowerR>RwtenvironR-R?RRRR*Rtdestroy(tenable_shelltenable_editRBtcmdtscripttstartuptoptsR8R0totaRAtpathxRtdirt
edit_startRU((s+/usr/local/lib/python2.5/idlelib/PyShell.pyRu!s#











	




	
$


		
R(=R0tos.pathRtstringRRRRRt	tracebackR!RRRRRtImportErrorRRRERRRRRRt
configHandlerRRtrpcR}Rt
ascii_letterstdigitsR.RtsignalR
RR
RtshowwarningRRRZt
checkcacheR"R#RjRoRt	RPCClientRRRmtobjectRkRRuRR(((s+/usr/local/lib/python2.5/idlelib/PyShell.pys<module>s|
							H	~


Man Man