|
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 : |
Ñò
§ÚêLc @ s§ d Z d Z d d k Z d d k Z d d k Z d d k Z d a d „ Z d „ Z d „ Z e
d ƒ \ Z Z Z
Z Z d d
d
„ ƒ YZ e d j o e ƒ n d S( 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)
i i iÿÿÿÿNc G s3 d i | ƒ } t i i | ƒ t i i d ƒ d S( Nt s
( t joint syst stderrt write( t argst msg( ( s1 /usr/lib64/python2.6/Tools/scripts/checkappend.pyt errprint+ s c
C sË t i d } y# t i t i d d ƒ \ } } Wn1 t i j
o"