dbfdg ó fc@skddlZddlZddlZgZd„ZdZejeƒZd„Ze dkrgeƒndS(iÿÿÿÿNcCsltjd}x|D]}t|ƒqWtrhtddƒ}tjƒxtD]}|j|ƒqNWndS(Nittagstw(tsystargvt treat_fileRtopentsorttwrite(targstfilenametfpts((s+/usr/lib64/python2.7/Tools/scripts/ptags.pytmains    s/^[ ]*(def|class)[ ]+([a-zA-Z0-9_]+)[ ]*[:\(]cCsyt|dƒ}Wntjjd|ƒdSXtjj|ƒ}|ddkra|d }n|d|dd}tj|ƒxw|j ƒ}|sPnt j |ƒ}|r‡|j dƒ}|j dƒ}|d|d |d }tj|ƒq‡q‡WdS( NtrsCannot open %s iýÿÿÿs.pys s1 iis /^s/ ( RRtstderrRtostpathtbasenameRtappendtreadlinetmatchertmatchtgroup(R R tbaseR tlinetmtcontenttname((s+/usr/lib64/python2.7/Tools/scripts/ptags.pyRs(   t__main__( RtreRRR texprtcompileRRt__name__(((s+/usr/lib64/python2.7/Tools/scripts/ptags.pyt s$