fc@s`ddlZddlZddlmZddlZdZdZedkr\endS(iN(tST_MTIMEc Csgd}d}tjdrTtjddkr5d}qTtjddkrTd}qTntj}|sxdGt|GHnxtjD]}ytj|}Wn&tjk rdGt|GHqnX|sdGt|GdGHn|j xr|D]j}|d d krtjj ||}ytj |}Wn&tjk rWd Gt|GHqnX|rtd Gt|GdGHn|d }yt |d}Wn#t k rdGt|GHqnX|jd} |jd} |j| |krdGt|GHqnt| } | dks$| dkr6dGt|GHq[| |tkr[dGt|GHq[qqWqWdS(Niis-vs-ssUsing MAGIC wordsCannot list directorys Checking s...is.pys Cannot stattChecktctrs Cannot openisBad MAGIC word in ".pyc" fileisBad ".pyc" filesOut-of-date ".pyc" file(tsystargvtimpt get_magictreprtpathtostlistdirterrortsorttjointstattopentIOErrortreadtclosetget_longR( tsilenttverbosetMAGICtdirnametnamestnametsttname_ctft magic_strt mtime_strtmtime((s./usr/lib64/python2.7/Tools/scripts/checkpyc.pytmain s`            cCsZt|dkrdSt|dt|dd>t|dd>t|dd >S( Niiiiiiiii(tlentord(ts((s./usr/lib64/python2.7/Tools/scripts/checkpyc.pyR<st__main__(RR RRRR!Rt__name__(((s./usr/lib64/python2.7/Tools/scripts/checkpyc.pyts    2