mirror of https://github.com/deadw00d/AROS.git
Codacy fixes
This commit is contained in:
parent
989385b692
commit
9b0271f493
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue