Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e96ec6

Browse files
committed
nannified.
1 parent 7944ea5 commit 4e96ec6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Tools/scripts/lfcr.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
import sys, regsub, os
66
for file in sys.argv[1:]:
77
if os.path.isdir(file):
8-
print file, "Directory!"
9-
continue
8+
print file, "Directory!"
9+
continue
1010
data = open(file, "rb").read()
1111
if '\0' in data:
12-
print file, "Binary!"
13-
continue
12+
print file, "Binary!"
13+
continue
1414
newdata = regsub.gsub("\r?\n", "\r\n", data)
1515
if newdata != data:
16-
print file
17-
f = open(file, "wb")
18-
f.write(newdata)
19-
f.close()
16+
print file
17+
f = open(file, "wb")
18+
f.write(newdata)
19+
f.close()

0 commit comments

Comments
 (0)