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/2/root/usr/lib/python2.4/Tools/scripts/checkappend.pyo
mò
‚=5Dc@s›dZdZdkZdkZdkZdkZdad„Zd„Zd„Z	e
dƒ\ZZZ
ZZdfd	„ƒYZed
joeƒ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)
iiNcGs3di|ƒ}tii|ƒtiidƒdS(Nt s
(tjointargstmsgtsyststderrtwrite(RR((t//usr/lib/python2.4/Tools/scripts/checkappend.pyterrprint+scCsÑtid}y#titiddƒ\}}Wn4tij
o%}tt|ƒdt	ƒdSnXx/|D]'\}}|djotdaqnqnW|ptt	ƒdSnx|D]}t|ƒq¹WdS(Nitvs

s-v(RtargvRtgetopttoptsterrorRRtstrt__doc__topttoptargtverbosetargtcheck(RRRRRR((Rtmain0s"
#	

cCsatii|ƒoºtii|ƒo¦tod|fGHnti|ƒ}xu|D]m}tii	||ƒ}tii|ƒotii|ƒptii|dƒdjot|ƒqTqTWdSnyt
|ƒ}Wn-tj
o!}td||fƒdSnXtdjod|fGHnt||ƒiƒ}to|od|fGHndS(Ns%r: listing directoryiýÿÿÿs.pys%r: I/O Error: %sischecking %r ...s%r: Clean bill of health.(tostpathtisdirtfiletislinkRtlistdirtnamestnameRtfullnametnormcaseRtopentftIOErrorRRt
AppendCheckertruntok(RR%RR!RRR((RRAs('D	
iR#cBsDtZd„Zd„Zeieieifeiei	d„Z
RS(NcCs(||_||_t|_d|_dS(Ni(tfnametselfRtFIND_DOTtstatetnerrors(R'R&R((Rt__init__bs			cCslyti|ii|iƒWn?tij
o0}td|i|fƒ|i	d|_	nX|i	djS(Ns%r: Token Error: %sii(
ttokenizeR'Rtreadlinet
tokeneatert
TokenErrorRRR&R*(R'R((RR$hsc
Csü|i}
||jonÖ|
tjo(||jo|djo
t}
qïn¡|
tjoD||	jo-|djo ||_	|d|_t}
qït}
nP|
tjo7||jo |djod|_
t}
qït}
n|
tjoÃ||jo²|djo|i
d|_
q°|djo.|i
d|_
|i
djo
t}
q¬q°|djoE|i
djo5|id|_d|i|i|i	fGHt}
q°qïn<|
tjo||jo
t}
qïntd
|
fƒ‚|
|_dS(Nt.tappendit(it{t[t)t}t]t,s
%s(%d):
%ssunknown internal state '%r'(R2R3R4(R5R6R7(R'R)ttypetJUNKR(tOPttokentFIND_APPENDtNAMEtlinetstarttlinenotFIND_LPARENtlevelt
FIND_COMMAR*R&t	FIND_STMTtNEWLINEtSystemError(R'R9R<R@tendR?RFR:R;R>R)((RR.psD	


	



	







(t__name__t
__module__R+R$R,RFtCOMMENTtNLR;R>R.(((RR#as		t__main__(iii(Rt__version__RRRR,RRRRtrangeR(R=RBRDRER#RI(R#RRBRDR(RERR,RRRNRRR=((Rt? s							E