Your IP : 18.220.136.182
�
�fc@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 |�}qMW|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(RR((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
?>