Removing extra whitespace from lines in target file.

This commit is contained in:
Tib3rius 2020-02-10 15:03:51 -05:00 committed by GitHub
parent de3935fedd
commit d5b3122d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)