remove whitespace and newline characters

This commit is contained in:
Andreas Zweili 2020-10-13 22:54:06 +02:00
parent 89806e0be2
commit 26119705a6
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ if __name__ == "__main__":
with args.file as input_file:
for line in input_file:
try:
url, topics = line.split(' ')
stripped_line = line.strip()
url, topics = stripped_line.split(' ')
except ValueError:
url = line
topics = []