Removing extra whitespace from lines in target file.
This commit is contained in:
parent
de3935fedd
commit
d5b3122d8f
|
@ -756,6 +756,7 @@ if __name__ == '__main__':
|
||||||
with open(args.target_file, 'r') as f:
|
with open(args.target_file, 'r') as f:
|
||||||
lines = f.read()
|
lines = f.read()
|
||||||
for line in lines.splitlines():
|
for line in lines.splitlines():
|
||||||
|
line = line.strip()
|
||||||
if line.startswith('#') or len(line) == 0: continue
|
if line.startswith('#') or len(line) == 0: continue
|
||||||
if line not in raw_targets:
|
if line not in raw_targets:
|
||||||
raw_targets.append(line)
|
raw_targets.append(line)
|
||||||
|
|
Loading…
Reference in New Issue