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:
|
with args.file as input_file:
|
||||||
for line in input_file:
|
for line in input_file:
|
||||||
try:
|
try:
|
||||||
url, topics = line.split(' ')
|
stripped_line = line.strip()
|
||||||
|
url, topics = stripped_line.split(' ')
|
||||||
except ValueError:
|
except ValueError:
|
||||||
url = line
|
url = line
|
||||||
topics = []
|
topics = []
|
||||||
|
|
Loading…
Reference in New Issue