ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python2.7/Tools/scripts/pindent.pyc
ó
fc@sÙddlmZdZdZeZddlZddlZddlZiZ	d e	d<e	d<d!e	d<e	d	<d"e	d<d#e	d
<de	d<e	d<e	d
<e	d<e	d<d$e	d<d%Z
dd&d„ƒYZejej
eeed„Zejej
eeed„Zejej
eeed„Zeeed„Zeeed„Zeeed„Zd„Zeeed„Zeeed„Zeeed„ZdeƒZd„Zd„ZedkrÕeƒndS('iÿÿÿÿ(tprint_functioniNteliftelsetendtiftwhiletfortexcepttfinallyttrytwithtdeftclasstPythonIndentercBsneZejejeeed„Zd„Z	d„Z
d„Zd„Zd„Z
d„Zd„Zd„ZRS(	cCs|||_||_||_||_d|_||_|j|_tj	dƒ|_
tj	dƒ|_tj	dƒ|_dS(NisC^(?:\s|\\\n)*(?P<kw>[a-z]+)((?:\s|\\\n)+(?P<id>[a-zA-Z_]\w*))?[^\w]sE^(?:\s|\\\n)*#?\s*end\s+(?P<kw>[a-z]+)(\s+(?P<id>[a-zA-Z_]\w*))?[^\w]s^[ \t]*(
tfpitfpot
indentsizettabsizetlinenot
expandtabstwritet_writetretcompiletkwprogtendprogtwsprog(tselfRRRRR((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyt__init__fs						cCs6|jr%|j|j|jƒƒn
|j|ƒdS(N(RRR(Rtline((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyRzs	cCs+|jjƒ}|r'|jd7_n|S(Ni(RtreadlineR(RR((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyR‚scGsE|r||}ntjjd|j|fƒ|jd|ƒdS(NsError at line %d: %s
s### %s ###
(tsyststderrRR(Rtfmttargs((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyterror‰s
cCsG|jƒ}x4|ddkrB|jƒ}|s5Pn||7}qW|S(Niþÿÿÿs\
(R(RRtline2((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytgetlinescCs{t||j|jƒ\}}|jj|ƒjƒ}||}|d dkrjd|d||}n|j|ƒdS(Nis
s
ts	t (s
s
R&(tdivmodRRRtmatchRR(RRtindentttabstspacesti((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytputline›s
cCsÀg}xutr}|jƒ}|s%Pn|jj|ƒ}|rªd}|jdƒ}|sh|jdƒn&|jƒd|krŽ|jdƒn|j|t|ƒƒq	n|j	j|ƒ}|rd|jdƒ}|t
kr|j|t|ƒƒ|j||fƒq	ntj
|ƒrd|rd|j|t|ƒdƒ|d\}}||f|d<q	qdn|j|t|ƒƒq	W|r¼|jdƒx(|D]\}}|jd	|ƒq˜WndS(
NRtkwsunexpected endis
unmatched endiiÿÿÿÿsunterminated keywordss	%s
(tTrueR%RR)tgroupR#tpopR.tlenRtstarttappendtnextthas_keyR(RtstackRtmR/tkw2tkwatkwb((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytreformat¥s@		
cCsñd}d}x˜tr¦|jƒ}|s+Pn|jj|ƒ}|rS|d7}qn|jj|ƒ}|r–|jdƒ}|tkr–|d7}q–n|j|ƒqW||dkrÊtj	jdƒn#||dkrítj	jdƒndS(NiiR/s5Warning: input contained more end tags than expected
s5Warning: input contained less end tags than expected
(
R0R%RR)RR1R4RRR (Rt
begin_countertend_counterRR9R/((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytdeleteÐs(	
cCs\g}g}d}}}}}x3trW|jƒ}|jj|ƒjƒ}	|jj|ƒ}
|
rŽd}|
jdƒ}|
jdƒ}n–|jj|ƒ}
|
rô|
jdƒ}tj	|ƒsÍd}n|d
krë|
jdƒ}q$d}n0||	|	d!dkr|j
|ƒq%nd}||	 }
t|
j|j
ƒƒ}t|j|j
ƒƒ}x‡||krç|r´|rŒd
||f}n
d|}|j||ƒd}}n|jƒ\}}}}t|j|j
ƒƒ}qaW||krŠ|rŠ|dkr/||kr"|jdƒnd}}qŠ|sB|tkrŠ|r[d
||f}n
d|}|j||ƒd}}}qŠn||krë|j
||||fƒ|rÊ|tkrÊd}n|
|||f\}}}}n|r|tkr|}}|}q|}nx|D]}|j|ƒq Wg}|sGPn|j|ƒq%WdS(NR&RR/tidRRis
t#s# end %s %s
s	# end %s
smismatched end(RR(s
RB(R0R%RR)RRR1RR6R7R5R3RRRR2R#R4(RR8ttodot	currentwstthisidtfirstkwtlastkwttopidRR-R9tthiskwtendkwtindentwsR*tcurrenttstl((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytcompleteìs€			





	!
		
(t__name__t
__module__RtstdintstdouttSTEPSIZEtTABSIZEt
EXPANDTABSRRRR#R%R.R=R@RO(((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyR
ds					
	+	cCs&t|||||ƒ}|jƒdS(N(R
RO(tinputtoutputtstepsizeRRtpi((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytcomplete_filterMscCs&t|||||ƒ}|jƒdS(N(R
R@(RWRXRYRRRZ((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyt
delete_filterSscCs&t|||||ƒ}|jƒdS(N(R
R=(RWRXRYRRRZ((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytreformat_filterYscCsGtj|ƒ}tjƒ}t|||||ƒ}|jƒ|jƒS(N(tiotBytesIOR
ROtgetvalue(tsourceRYRRRWRXRZ((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytcomplete_string_s

cCsGtj|ƒ}tjƒ}t|||||ƒ}|jƒ|jƒS(N(R^R_R
R@R`(RaRYRRRWRXRZ((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyt
delete_stringgs

cCsGtj|ƒ}tjƒ}t|||||ƒ}|jƒ|jƒS(N(R^R_R
R=R`(RaRYRRRWRXRZ((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytreformat_stringos

cCsÅddl}ddl}|d}|jj|ƒryy|j|ƒWqy|jk
rutd|fdtjƒqyXny|j	||ƒWn1|jk
rÀtd||fdtjƒnXdS(Niÿÿÿÿt~sCan't remove backup %rtfilesCan't rename %r to %r(
tostos.pathtpathtlexiststremoveR#tprintRR trename(tfilenameRgtbackup((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytmake_backupws
!cCs|t|dƒ}|jƒ}WdQXt||||ƒ}||krIdSt|ƒt|dƒ}|j|ƒWdQXdS(Ntritwi(topentreadRbRpR(RnRYRRtfRatresult((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyt
complete_fileˆs
cCs|t|dƒ}|jƒ}WdQXt||||ƒ}||krIdSt|ƒt|dƒ}|j|ƒWdQXdS(NRqiRri(RsRtRcRpR(RnRYRRRuRaRv((s-/usr/lib64/python2.7/Tools/scripts/pindent.pytdelete_file–s
cCs|t|dƒ}|jƒ}WdQXt||||ƒ}||krIdSt|ƒt|dƒ}|j|ƒWdQXdS(NRqiRri(RsRtRdRpR(RnRYRRRuRaRv((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyt
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 (default 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).
cCsEtjjd|d|ddƒtjjtƒtjdƒdS(Ns Error: You can not specify both s and -is at the same time
i(RR Rtusagetexit(top1top2((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyt
error_bothÁs$cCs'ddl}y#|jtjddƒ\}}WnG|jk
rx}tjjd|ƒtjjtƒtjdƒnXd}t	}t
}t}xà|D]Ø\}}	|dkrÏ|rÆt||ƒnd}q˜|dkrú|rñt||ƒnd	}q˜|d
kr%|rt||ƒnd}q˜|dkr@t
|	ƒ}q˜|d
kr[t
|	ƒ}q˜|dkr˜t}q˜q˜W|sªtjjdƒtjjtƒtjdƒn|sÀ|dgkrït|dƒ}|tjtj|||ƒn4t|dƒ}x!|D]}
||
|||ƒqWdS(Niÿÿÿÿiscdrs:t:es
Error: %s
is-cROs-dR@s-rR=s-ss-ts-es7You must specify -c(omplete), -d(elete) or -r(eformat)
t-t_filtert_file(tgetoptRtargvR#R RRzR{tNoneRTRURVR~tintR0tevalRRRS(R‚toptsR"tmsgtactionRYRRtotaRn((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyttestÇsR#			
	
t__main__(RRR(RR(RR(RRRR((RRRR	R
RR((t
__future__RRTRUtFalseRVR^RRR6R4R
RRRSR[R\R]RbRcRdRpRwRxRytvarsRzR~RŒRP(((s-/usr/lib64/python2.7/Tools/scripts/pindent.pyt<module>OsB

*
é	
		3