split("\n") -> splitlines()
This commit is contained in:
parent
b0c4cfaccd
commit
9bd80c49bd
@ -26,7 +26,7 @@ class Entry:
|
|||||||
def parse(raw_entry):
|
def parse(raw_entry):
|
||||||
description = ""
|
description = ""
|
||||||
stamps = []
|
stamps = []
|
||||||
lines = raw_entry.strip().split("\n")
|
lines = raw_entry.strip().splitlines()
|
||||||
if len(lines) < 2:
|
if len(lines) < 2:
|
||||||
return None
|
return None
|
||||||
name = lines[0].strip()
|
name = lines[0].strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user