ó fc@s8ddlZd„Zd„Zedkr4eƒndS(iÿÿÿÿNcCs,tjd}x|D]}t|ƒqWdS(Ni(tsystargvtprocess(targstfilename((s//usr/lib64/python2.7/Tools/scripts/fixheader.pytmains  cCs•yt|dƒ}Wn4tk rI}tjjd|t|ƒfƒdSX|jƒ}|jƒ|d dkrˆtjjd|ƒdSyt|dƒ}Wn4tk rÑ}tjjd|t|ƒfƒdSXtjjd|ƒd }xI|D]A}t|ƒd kr*|j ƒr*||j ƒ}qó|d }qóW|t_ d G|GHd G|GHdGHdGHdGHH|j|ƒHdGHdGHdGHdGd|GdGHdS(Ntrs%s: can't open: %s is/*s!%s does not begin with C comment tws%s: can't write: %s sProcessing %s ... tPy_i€t_s#ifndefs#defines#ifdef __cpluspluss extern "C" {s#endift}s #endif /*t!s*/( topentIOErrorRtstderrtwritetstrtreadtclosetordtisalnumtuppertstdout(Rtftmsgtdatatmagictc((s//usr/lib64/python2.7/Tools/scripts/fixheader.pyR sD         t__main__(RRRt__name__(((s//usr/lib64/python2.7/Tools/scripts/fixheader.pyts   $