remove whitespace and newline characters
This commit is contained in:
parent
89806e0be2
commit
26119705a6
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue