<s> "<STR_LIT>" <EOL> import sys , re , os <EOL> def main ( ) : <EOL> for filename in sys . argv [ <NUM_LIT:1> : ] : <EOL> if os . path . isdir ( filename ) : <EOL> print filename , "<STR_LIT>" <EOL> continue <EOL> data = open ( filename , "<STR_LIT:rb>" ) . read ( ) <EOL> if '<STR_LIT>' in data : <EOL> print filename , "<STR_LIT>" <EOL> continue <EOL> newdata = re . sub ( "<STR_LIT>" , "<STR_LIT:\r\n>" , data ) <EOL> if newdata != data : <EOL> print filename <EOL> f = open ( filename , "<STR_LIT:wb>" ) <EOL> f . write ( newdata ) <EOL> f . close ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
