ó x”þfc@s·ddlZddlZddlZddlTejjZeZejjZ d„Z ej dƒZ d„Z d„Zd„ZdZej eƒZd „Zed kr³e ƒndS( iÿÿÿÿN(t*cCsÍd}tjds<tdtjddƒtjdƒnx}tjdD]n}tjj|ƒrzt|ƒr¸d}q¸qJtjj|ƒr£t|dƒd}qJt |ƒrJd}qJqJWtj|ƒdS(Niisusage: s file-or-directory ... is": will not process symbolic links ( tsystargvterrtexittostpathtisdirt recursedowntislinktfix(tbadtarg((s-/usr/lib64/python2.7/Tools/scripts/methfix.pytmain&s    s^[a-zA-Z0-9_]+\.py$cCstj|ƒdkS(Ni(t ispythonprogtmatch(tname((s-/usr/lib64/python2.7/Tools/scripts/methfix.pytispython6scCs1td|fƒd}ytj|ƒ}Wn+tjk rW}td||fƒdSX|jƒg}xœ|D]”}|tjtjfkr“qontjj ||ƒ}tjj |ƒr½qotjj |ƒrß|j |ƒqot |ƒrot|ƒrd}qqoqoWx#|D]}t|ƒrd}qqW|S(Nsrecursedown(%r) is%s: cannot list directory: %r i(tdbgRtlistdirterrorRtsorttcurdirtpardirRtjoinR RtappendRR R(tdirnameR tnamestmsgtsubdirsRtfullname((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyR9s0      c Cs€yt|dƒ}Wn(tk r=}td||fƒdSXtjj|ƒ\}}tjj|d|ƒ}d}d}x |jƒ}|s”Pn|d}|dkrÒd|krÒt|dƒ|j ƒdS|dkrc|dkrc|d d krc|djƒ} | rct j d | dƒdkrc|d | d}|d }t|ƒ|j ƒdSnx>|d dkr£|jƒ} | sŒPn|| }|d}qfWt |ƒ} | |krj|dkr7yt|dƒ}Wn2tk r}|j ƒtd||fƒdSX|j dƒd}t|dƒq~ntt|ƒdƒtd|ƒtd| ƒn|dk r~|j| ƒq~q~|j ƒ|sdSy+tj|ƒ} tj|| td@ƒWn*tjk rô}td||fƒnXytj||dƒWn*tjk r9}td||fƒnXytj||ƒWn+tjk r{}td||fƒdSXdS(Ntrs%s: cannot open: %r it@its!: contains null bytes; not fixed is#!s [pP]ythons: s script; not fixed iþÿÿÿs\ tws%s: cannot create: %r s: s s< s> iÿs%s: warning: chmod failed (%r) t~s %s: warning: backup failed (%r) s%s: rename failed (%r) (topentIOErrorRRRtsplitRtNonetreadlinetclosetretsearchtfixlinetseektreptreprtwritetstattchmodtST_MODERtrename( tfilenametfRtheadttailttempnametgtlinenotlinetwordstnextlinetnewlinetstatbuf((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyR Osˆ   ("            s8^[ ]+def +[a-zA-Z0-9_]+ *( *self *, *(( *(.*) *)) *) *:cCs[tj|ƒdkrWtjdd!\\}}\}}|| |||!||}n|S(Niii(tfixprogRtregs(R<tatbtctd((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyR,¤s" t__main__(RR*RR1tstderrR0RRtstdoutR.R tcompileRRRR tfixpatRAR,t__name__(((s-/usr/lib64/python2.7/Tools/scripts/methfix.pyts          R