only strip newlines
This commit is contained in:
parent
b615241f8c
commit
45fc27f1a8
2
ppp.py
2
ppp.py
|
@ -28,7 +28,7 @@ def preprocess_file(path):
|
||||||
|
|
||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
content = f.readlines()
|
content = f.readlines()
|
||||||
content = [x.strip() for x in content]
|
content = [x.strip('\n') for x in content]
|
||||||
lines=len(content)
|
lines=len(content)
|
||||||
|
|
||||||
for l in content:
|
for l in content:
|
||||||
|
|
Loading…
Reference in New Issue