2 "Replace CRLF with LF in argument files. Print names of changed files."
7 for filename in sys.argv[1:]:
8 if os.path.isdir(filename):
9 print filename, "Directory!"
11 data = open(filename, "rb").read()
13 print filename, "Binary!"
15 newdata = data.replace("\r\n", "\n")
18 f = open(filename, "wb")
22 if __name__ == '__main__':