Codacy fixes

This commit is contained in:
Matthias Rustler 2021-02-27 22:28:21 +01:00 committed by deadwood
parent 989385b692
commit 9b0271f493
1 changed files with 2 additions and 2 deletions

View File

@ -4,13 +4,13 @@
# Script for fixing line ending from \r and \r\n to \n.
# Script starts with the current directory.
import re, os, sys
import os, sys
def examine(filename):
infile = open(filename, "rb")
content = infile.read()
infile.close()
newcontent = content.replace(b"\r\n", b"\n") # Windows
newcontent = newcontent.replace(b"\r", b"\n") # Mac
if content != newcontent: