File: //proc/2/cwd/proc/self/root/usr/lib/python2.4/Tools/scripts/checkappend.pyc
mò
‚=5Dc @ s› d Z d Z d k Z d k Z d k Z d k Z d a d „ Z d „ Z d „ Z e
d ƒ \ Z Z Z
Z Z d f 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 Nc G s3 d i | ƒ } t i i | ƒ t i i d ƒ d S( Nt s
( t joint argst msgt syst stderrt write( R R ( ( t/ /usr/lib/python2.4/Tools/scripts/checkappend.pyt errprint+ s c C sÑ t i d } y# t i t i d d ƒ \ } } Wn4 t i j
o% } t t | ƒ d t ƒ d Sn Xx/ | D]' \ } } | d j o t d a qn qn W| p t t ƒ d Sn x | D] } t | ƒ q¹ Wd S( Ni t vs
s -v( R t argvR t getoptt optst errorR R t strt __doc__t optt optargt verboset argt check( R R R R R R ( ( R t main0 s"