Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/Tools/scripts/checkappend.pyc
Ñò
§ÚêLc	@s§dZdZddkZddkZddkZddkZdad„Zd„Zd„Z	e
dƒ\ZZZ
ZZd	d
d
„ƒYZedjoeƒndS(s­checkappend.py -- search for multi-argument .append() calls.

Usage:  specify one or more file or directory paths:
    checkappend [-v] file_or_dir [file_or_dir] ...

Each file_or_dir is checked for multi-argument .append() calls.  When
a directory, all .py files in the directory, and recursively in its
subdirectories, are checked.

Use -v for status msgs.  Use -vv for more status msgs.

In the absence of -v, the only output is pairs of the form

    filename(linenumber):
    line containing the suspicious append

Note that this finds multi-argument append calls regardless of whether
they're attached to list objects.  If a module defines a class with an
append method that takes more than one argument, calls to that method
will be listed.

Note that this will not find multi-argument list.append calls made via a
bound method object.  For example, this is not caught:

    somelist = []
    push = somelist.append
    push(1, 2, 3)
iiiÿÿÿÿNcGs3di|ƒ}tii|ƒtiidƒdS(Nt s
(tjointsyststderrtwrite(targstmsg((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pyterrprint+sc
CsËtid}y#titiddƒ\}}Wn1tij
o"}tt|ƒdtƒdSXx/|D]'\}}|djotdaqkqkW|pttƒdSx|D]}t|ƒq³WdS(Nitvs

s-v(	RtargvtgetoptterrorRtstrt__doc__tverbosetcheck(RtoptsRtopttoptargtarg((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pytmain0s 
#

cCs[tii|ƒo·tii|ƒo£tod|fGHnti|ƒ}xu|D]m}tii||ƒ}tii|ƒotii|ƒptii|dƒdjot|ƒqTqTWdSyt	|ƒ}Wn*t
j
o}td||fƒdSXtdjod|fGHnt||ƒi
ƒ}to|od|fGHndS(Ns%r: listing directoryiýÿÿÿs.pys%r: I/O Error: %sischecking %r ...s%r: Clean bill of health.(tostpathtisdirtislinkRtlistdirRtnormcaseRtopentIOErrorRt
AppendCheckertrun(tfiletnamestnametfullnametfRtok((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pyRAs,'
iRcBsDeZd„Zd„Zeieieifeiei	d„Z
RS(cCs(||_||_t|_d|_dS(Ni(tfnameRtFIND_DOTtstatetnerrors(tselfR%R((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pyt__init__bs			cCslyti|ii|iƒWn?tij
o0}td|i|fƒ|id|_nX|idjS(Ns%r: Token Error: %sii(ttokenizeRtreadlinet
tokeneatert
TokenErrorRR%R((R)R((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pyRhsc
Csü|i}
||jonÖ|
tjo(||jo|djo
t}
qïn¡|
tjoD||	jo-|djo ||_|d|_t}
qït}
nP|
tjo7||jo |djod|_t}
qït}
n|
tjoÃ||jo²|djo|id|_q°|djo.|id|_|idjo
t}
q¬q°|djoE|idjo5|id|_d|i	|i|ifGHt
}
q°qïn<|
t
jo||jo
t}
qïntd
|
fƒ‚|
|_dS(Nt.tappendit(it{t[t)t}t]t,s
%s(%d):
%ssunknown internal state '%r'(R1R2R3(R4R5R6(R'R&tFIND_APPENDtlinetlinenotFIND_LPARENtlevelt
FIND_COMMAR(R%t	FIND_STMTtSystemError(R)ttypettokentstarttendR9tNEWLINEtJUNKtOPtNAMER'((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pyR-psF	


	



	







(t__name__t
__module__R*RR+RDtCOMMENTtNLRFRGR-(((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pyRas			t__main__(iii((R
t__version__RRR
R+RRRRtrangeR&R8R;R=R>RRH(((s1/usr/lib64/python2.6/Tools/scripts/checkappend.pyt<module> s			E


haha - 2025