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/CodeContext.pyo
mò
‚=5Dc@sždZdkZdklZdklZdkZedddddd	d
ddd
g
ƒZdd>ZdZ	dZ
eidƒd„Zdfd„ƒYZ
dS(sFCodeContext - Display the block context of code at top of edit window

Once code has scrolled off the top of the screen, it can be difficult
to determine which block you are in.  This extension implements a pane
at the top of each IDLE edit window which provides block structure
hints.  These hints are the lines which contain the block opening
keywords, e.g. 'if', for the enclosing block.  The number of hint lines
is determined by the numlines variable in the CodeContext section of
config-extensions.def. Lines which do not open blocks are not shown in
the context hints pane.

N(sidleConf(sSettclasstdefteliftelsetexcepttfinallytfortifttrytwhileiiidiès^(\s*)(\w*)cCs|i|ƒiƒS(N(tctmatchtstgroups(RR
((t+/usr/lib64/python2.4/idlelib/CodeContext.pyt<lambda>stCodeContextcBs¿tZddgfgZeidddddd	d
ƒZeidddddd	d
ƒZeidddddd	dƒZd„Zdd„Z
d„Zd„Zd„Z
d„Zd„ZRS(Ntoptionss!Code Conte_xts<<toggle-code-context>>t
extensionsRtnumlinesttypetinttdefaultitbgcolortstrt	LightGraytfgcolortBlackcCsÈ||_|i|_|id|_d|_t|idƒƒ|_d|_	t
iddddddtƒ}|o!|iƒ|iid	tƒn|iit|iƒ|iit|iƒdS(
NtfontiRRtvisibleRtboolRs<<toggle-code-context>>(teditwintselfttextttextfonttNonetlabeltlisttinteresting_linestinfot
lastfirstlinetidleConft	GetOptiontFalseRttoggle_code_context_eventtsetvartTruetaftertUPDATEINTERVALttimer_eventtFONTUPDATEINTERVALtfont_timer_event(R RR((Rt__init__#s			
cCsÞ|ip‹ti|iidd|idddddd|id	|id
|i	ddd
dƒ|_|ii
ddddddd|iiƒn|iiƒd|_tidddt|idj	ƒƒtiƒdS(NR!s
itanchortwtjustifytleftRtbgtfgtrelieftsunkentwidthtsidettoptfilltxtexpandiR/RRR(R R$tTkintertLabelRR?RR"RRtpackt
status_bartdestroyR#R)t	SetOptionRtSaveUserCfgFiles(R tevent((RR,4s
	
	cCs³|djoddtfSn|iid|d|ƒ}t|ƒ\}}|tjo|}t
|ƒt
|ƒjp|t
|ƒdjo
t}n
t
|ƒ}|||fS(s‹Get the line indent value, text, and any block start keyword

        If the line does not start a block, the keyword value is False.
        The indentation of empty lines (or comment lines) is INFINITY.
        There is a dummy block start, with indentation -1 and text "".

        Return the indent level, text (including leading whitespace),
        and the block opening keyword.

        iiÿÿÿÿts%d.0s%d.endt#N(
tlinenumR.R R!tgettgetspacesfirstwordtspacest	firstwordtBLOCKOPENERStopenertlentINFINITYtindent(R RMRVR!RPRSRQ((Rt
get_line_infoGs

0
ccs“t}x†t|ddƒD]r}|i|ƒ\}}}||joG|}|djo|d7}n|o||jo||fVq‹qqWdS(s<Generator which yields context lines, starting at firstline.iÿÿÿÿRRiN(RR(
RUt
lastindenttxranget	firstlinet
line_indexR RWRVR!RS(R RZRXR[RSR!RV((RR&]s

cCsYt|iidƒidƒdƒ}|i|jodSn||_g}xw|i|ƒD]f\}}x'|i
dd|jo|i
d=qkW|i
dd|joPn|i||fƒq\Wx"|o|i
i|iƒƒqÉWdgt
d|it|i
ƒƒg}|i
|iD]}||dq$~}di|ƒ|id<dS(	Ns@0,0t.iiÿÿÿÿRKis
R!(RR R!tindextsplitRZR(ttmpstackR&R[R'tappendtpoptmaxRRTt_[1]RAtlinestjoinR$(R RZR_RdR[RcR!RA((Rtupdate_labelms$%	TcCs2|io|iƒn|iit|iƒdS(N(R R$RfR!R/R0R1(R ((RR1s
cCs^|id}|io-||ijo||_|i|id<n|iit|iƒdS(NR(R R!tnewtextfontR$R"R/R2R3(R Rg((RR3†s

	(s!Code Conte_xts<<toggle-code-context>>(t__name__t
__module__tmenudefsR)R*RRRR4R#R,RWR&RfR1R3(((RRs					(t__doc__RCt
configHandlerR)tsetstSettreRRRUR0R2tcompileROR(
RnRCRRROR)RoRUR0R2R((Rt?s	

	*


Anon7 - 2021