MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/2/task/2/root/usr/lib/python2.4/Tools/scripts/pindent.pyc
mò
‚=5Dc@s×dZdZdZdkZdkZdkZhZd!ed<ed<d"ed<ed<d#ed<d$ed	<ded<ed
<ed<ed
<fed<d%Zdfd„ƒYZei	ei
eeed„Zei	ei
eeed„Zei	ei
eeed„Z
dfd„ƒYZdfd„ƒYZeeed„Zeeed„Zeeed„Zeeed„Zeeed„Zeeed„ZdeƒZd„Zd„Zed joeƒndS(&iiNteliftelsetendtiftwhiletfortexcepttfinallyttrytdeftclasstPythonIndentercBsqtZeieieeed„Zd„Z	d„Z
d„Zd„Zdd„Zd„Zd„Zd	„ZRS(
NcCs|||_||_||_||_d|_||_|i|_t	i
dƒ|_t	i
dƒ|_t	i
dƒ|_
dS(Nis1^\s*(?P<kw>[a-z]+)(\s+(?P<id>[a-zA-Z_]\w*))?[^\w]s<^\s*#?\s*end\s+(?P<kw>[a-z]+)(\s+(?P<id>[a-zA-Z_]\w*))?[^\w]s^[ \t]*(tfpitselftfpot
indentsizettabsizetlinenot
expandtabstwritet_writetretcompiletkwprogtendprogtwsprog(R
RRRRR((t+/usr/lib/python2.4/Tools/scripts/pindent.pyt__init__cs						cCs8|io|i|i|iƒƒn|i|ƒdS(N(R
RRtlineR(R
R((RRws
cCs.|iiƒ}|o|id|_n|S(Ni(R
RtreadlineRR(R
R((RRscGsG|o||}ntiid|i|fƒ|id|ƒdS(NsError at line %d: %s
s### %s ###
(targstfmttsyststderrRR
R(R
RR((Rterror†scCsK|iƒ}x8|ddjo&|iƒ}|pPn||}qW|S(Niþÿÿÿs\
(R
RRtline2(R
RR#((RtgetlinescCs•|djo|i|ƒdSnt||i|iƒ\}}d}|ii|ƒ}|o|iƒ}n|id|d|||ƒdS(Nis	t (tindenttNoneR
RRtdivmodRRttabstspacestiRtmatchtmR(R
RR&R)R-R+R*((Rtputline˜s

cCsÑg}x„|iƒ}|pPn|ii|ƒ}|owd}|idƒ}|p|i
dƒn'|dd|jo|i
dƒn|d3|i|t|ƒƒq	n|i
i|ƒ}|o¨|idƒ}|tjo0|i|t|ƒƒ|i||fƒq	nti|ƒoH|oA|i|t|ƒdƒ|d\}}||f|d<q	qrn|i|t|ƒƒq	W|o9|i
dƒx)|D]\}}|id	|ƒq¨WndS(
NiRtkwsunexpected endiÿÿÿÿis
unmatched endsunterminated keywordss	%s
(tstackR
R$RRR,R-R/tgrouptkw2R"R.tlenRtstarttappendtnextthas_keytkwatkwbR(R
R8R9R-R2R/RR0((Rtreformat¥sF

cCsød}d}x›|iƒ}|pPn|ii|ƒ}|o|d}qn|ii|ƒ}|o.|i	dƒ}|tjo|d}q˜n|i|ƒqW||djot
iidƒn&||djot
iidƒndS(NiiR/s5Warning: input contained more end tags than expected
s5Warning: input contained less end tags than expected
(t
begin_countertend_counterR
R$RRR,R-RR1R/R4R.R R!R(R
R-R<R/R;R((RtdeleteÑs*

cCsmd|_g}g}
d}d\}}}}x9|i	ƒ}d}|ii
|ƒ}|o|iƒ}n|ii
|ƒ}|o(d}|idƒ}	|idƒ}nŸ|ii
|ƒ}|oS|idƒ}ti|ƒp
d}n|djo|idƒ}qJd}n3|||d!djo|
i|ƒq0nd}t|| i|iƒƒ}xy||jok|oC|od||f}
nd|}
|i|
|ƒd}}n|d
\}}}}|d
=qiW||jo |o™|djo,|	|jo|idƒnd}}q|p
|tjoG|od||f}
nd|}
|i|
|ƒd}}}qn||joY|i||||fƒ|o|tjo
d}n||||f\}}}}n|o+|tjo|}}|}q'|}nx|
D]}|i!|ƒq.Wg}
|pPn|i!|ƒq0WdS(NitiRR/tidR	R
s
t#s# end %s %s
s	# end %s
iÿÿÿÿsmismatched end(iR>R>R>(R	R
(s
R@("R
RR0ttodotthisidtcurrenttfirstkwtlastkwttopidR$RR+RR,R-RRtthiskwR1tendkwRR6R7R5R3RRR&tsR.R"R4tlR(R
RER&RBR+RGR-RJRCRHRIRFRRAR0RD((Rtcompleteísˆ	










"



(t__name__t
__module__R tstdintstdouttSTEPSIZEtTABSIZEt
EXPANDTABSRRRR"R$R'R.R:R=RK(((RRas				
	,	cCs&t|||||ƒ}|iƒdS(N(RtinputtoutputtstepsizeRRtpiRK(RSRTRURRRV((Rtcomplete_filterRscCs&t|||||ƒ}|iƒdS(N(RRSRTRURRRVR=(RSRTRURRRV((Rt
delete_filterXscCs&t|||||ƒ}|iƒdS(N(RRSRTRURRRVR:(RSRTRURRRV((Rtreformat_filter^stStringReadercBs/tZd„Zdd„Zd„Zd„ZRS(NcCs(||_d|_t|iƒ|_dS(Ni(tbufR
tposR3(R
R[((RRes		icCsh|djo|i|i}nt||i|iƒ}|i|i|i|!}|i||_|S(Ni(tnR
R3R\tminR[tr(R
R]R_((Rtreadjs
cCs0|iid|iƒ}|i|d|iƒS(Ns
i(R
R[tfindR\R+R`(R
R+((RRtscCs>g}|iƒ}x%|o|i|ƒ|iƒ}qW|S(N(tlinesR
RRR5(R
RbR((Rt	readlinesxs
(RLRMRR`RRc(((RRZds	
	tStringWritercBs#tZd„Zd„Zd„ZRS(NcCs
d|_dS(NR>(R
R[(R
((RR…scCs|i||_dS(N(R
R[RI(R
RI((RRˆscCs|iS(N(R
R[(R
((Rtgetvalue‹s(RLRMRRRe(((RRd„s		cCsAt|ƒ}tƒ}t|||||ƒ}|i
ƒ|iƒS(N(RZtsourceRSRdRTRRURRRVRKRe(RfRURRRTRSRV((Rtcomplete_strings
	
cCsAt|ƒ}tƒ}t|||||ƒ}|i
ƒ|iƒS(N(RZRfRSRdRTRRURRRVR=Re(RfRURRRTRSRV((Rt
delete_string˜s
	
cCsAt|ƒ}tƒ}t|||||ƒ}|i
ƒ|iƒS(N(RZRfRSRdRTRRURRRVR:Re(RfRURRRTRSRV((Rtreformat_string s
	
cCs£t|dƒiƒ}t||||ƒ}||jodSndk	}y|i
||dƒWn|ij
onXt|dƒ}|i
|ƒ|iƒdS(NR_it~twi(topentfilenameR`RfRgRURRtresulttostrenameR"tfRtclose(RmRURRRoRqRfRn((Rt
complete_file¨s
	

cCs£t|dƒiƒ}t||||ƒ}||jodSndk	}y|i
||dƒWn|ij
onXt|dƒ}|i
|ƒ|iƒdS(NR_iRjRki(RlRmR`RfRhRURRRnRoRpR"RqRRr(RmRURRRoRqRfRn((Rtdelete_file·s
	

cCs£t|dƒiƒ}t||||ƒ}||jodSndk	}y|i
||dƒWn|ij
onXt|dƒ}|i
|ƒ|iƒdS(NR_iRjRki(RlRmR`RfRiRURRRnRoRpR"RqRRr(RmRURRRoRqRfRn((Rt
reformat_fileÆs
	

sG
usage: pindent (-c|-d|-r) [-s stepsize] [-t tabsize] [-e] [file] ...
-c         : complete a correctly indented program (add #end directives)
-d         : delete #end directives
-r         : reformat a completed program (use #end directives)
-s stepsize: indentation step (default %(STEPSIZE)d)
-t tabsize : the worth in spaces of a tab (default %(TABSIZE)d)
-e         : expand TABs into spaces (defailt OFF)
[file] ... : files are changed in place, with backups in file~
If no files are specified or a single - is given,
the program acts as a filter (reads stdin, writes stdout).
cCsEtiid|d|ddƒtiitƒtidƒdS(Ns Error: You can not specify both s and -is at the same time
i(R R!Rtop1top2tusagetexit(RvRw((Rt
error_bothäs$cCs=dk}y#|itiddƒ\}
}WnI|ij
o:}tiid|ƒtiit	ƒti
dƒnXd}	t
}t}t}xò|
D]ê\}}|djo"|	ot||	ƒnd}	q—|djo"|	ot||	ƒnd}	q—|d	jo"|	ot||	ƒnd
}	q—|djot|ƒ}q—|djot|ƒ}q—|d
jo
d}q—q—W|	p1tiidƒtiit	ƒti
dƒn|p|dgjo0t|	dƒ}	|	titi|||ƒn5t|	dƒ}	x!|D]}|	||||ƒqWdS(Niscdrs:t:es
Error: %s
is-cRKs-dR=s-rR:s-ss-ts-es7You must specify -c(omplete), -d(elete) or -r(eformat)
t-t_filtert_file(tgetoptR targvtoptsRR"tmsgR!RRxRyR'tactionRPRURQRRRRtotaRztinttevalRNRORm(R„RƒRURRRRR~RmR‚R€((RttestêsT	#








 t__main__(RRsend(Rsend(RR(RRsend(RRRRsdefsclass(RPRQRRRoRR R6R4RRNRORWRXRYRZRdRgRhRiRsRtRutvarsRxRzR‡RL(RsRZRPRQRWRRiR4RRR6RRhRxRuRtRYRzRdR R‡RgRXRo((Rt?Ps<			

"
ñ 

		3