ó fc@sYdZddlZddlZddlZd„Zed„ZedkrUeƒndS(sJReplace tabs with spaces in argument files. Print names of changed files.i˙˙˙˙NcCsĹd}y8tjtjddƒ\}}|s=tjd‚nWn0tjk rp}|GHdGtjdGdGHdSXx/|D]'\}}|dkrxt|ƒ}qxqxWx|D]}t||ƒqŞWdS( Niist:s#At least one file argument requiredsusage:is[-t tabwidth] file ...s-t(tgetopttsystargvterrortinttprocess(ttabsizetoptstargstmsgtoptnametoptvaluetfilename((s./usr/lib64/python2.7/Tools/scripts/untabify.pytmain s  cCs˙y&t|ƒ}|jƒ}|jƒWn#tk rK}d||fGHdSX|j|ƒ}||krkdS|d}ytj|ƒWntjk rœnXytj||ƒWntjk rÇnXt|dƒ}|j |ƒWdQX|rű|GHndS(Ns%r: I/O error: %st~tw( topentreadtclosetIOErrort expandtabstostunlinkRtrenametwrite(R RtverbosetfttextR tnewtexttbackup((s./usr/lib64/python2.7/Tools/scripts/untabify.pyRs.    t__main__(t__doc__RRRR tTrueRt__name__(((s./usr/lib64/python2.7/Tools/scripts/untabify.pyts