xfc@sYdZddlZddlZddlZdZedZedkrUendS(sJReplace tabs with spaces in argument files. Print names of changed files.iNcCsd}y8tjtjdd\}}|s=tjdnWn0tjk rp}|GHdGtjdGdGHdSXx/|D]'\}}|dkrxt|}qxqxWx|D]}t||qWdS( 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  cCsy&t|}|j}|jWn#tk rK}d||fGHdSX|j|}||krkdS|d}ytj|Wntjk rnXytj||Wntjk rnXt|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