You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Fixes newlines some files on Windows. Some tools seem to output newlines # with two CR characters (and an LF character). This script removes pairs of # CRs with a single CR.import sysdef main(): filename = sys.argv[1] print 'Fixing file "{0}".'.format(filename) f = open(filename, 'rb') text = f.read() f.close() text = text.replace('\r\r','\r') f = open(filename, 'wb') f.write(text) f.close() main()