No string = splitting on as many spacecharacters as needed, ' ' = only one...
This commit is contained in:
@@ -136,7 +136,7 @@ def parse_line(input_line: str) -> dict:
|
|||||||
#it should handle changes from CET to CEST
|
#it should handle changes from CET to CEST
|
||||||
try:
|
try:
|
||||||
input_line = input_line.split("\n")[0] #No idea why it appends a newline if I don't do this?
|
input_line = input_line.split("\n")[0] #No idea why it appends a newline if I don't do this?
|
||||||
space_split = input_line.split(' ')
|
space_split = input_line.split()
|
||||||
month = space_split[0]
|
month = space_split[0]
|
||||||
dateint = space_split[1]
|
dateint = space_split[1]
|
||||||
timestr = space_split[2]
|
timestr = space_split[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user