Your IP : 3.145.79.139


Current Path : /lib64/python2.7/Tools/scripts/
Upload File :
Current File : //lib64/python2.7/Tools/scripts/eptags.pyc

�
�mec@s_dZddlZddlZdZeje�Zd�Zd�Zedkr[e�ndS(s�Create a TAGS file for Python programs, usable with GNU Emacs.

usage: eptags pyfiles...

The output TAGS file is usable with Emacs version 18, 19, 20.
Tagged are:
 - functions (even inside other defs or classes)
 - classes

eptags warns about files it cannot open.
eptags will not give warnings about duplicate tags.

BUGS:
   Because of tag duplication (methods with the same name in different
   classes), TAGS files are not very useful for most object-oriented
   python projects.
i����Ns;^[ \t]*(def|class)[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]*[:\(]c
Csyt|d�}Wntjjd|�dSXd}d}g}d}x�|j�}|scPn|d}tj|�}|r�|jd�d||f}	|j|	�|t	|	�}n|t	|�}qM|jd||f�x|D]}	|j|	�q�WdS(sCAppend tags found in file named 'filename' to the open file 'outfp'trsCannot open %s
Niis%d,%d
s
%s,%d
(
topentsyststderrtwritetreadlinetmatchertsearchtgrouptappendtlen(
tfilenametoutfptfptcharnotlinenottagstsizetlinetmttag((s,/usr/lib64/python2.7/Tools/scripts/eptags.pyt
treat_files.


cCs8tdd�}x"tjdD]}t||�qWdS(NtTAGStwi(RRtargvR(RR((s,/usr/lib64/python2.7/Tools/scripts/eptags.pytmain2st__main__(	t__doc__RtretexprtcompileRRRt__name__(((s,/usr/lib64/python2.7/Tools/scripts/eptags.pyt<module>s