Handle cases of course file ending in an empty line / comment
This commit is contained in:
parent
fef2012961
commit
a732620888
|
@ -122,7 +122,11 @@ def parse(text):
|
||||||
length = len(text)
|
length = len(text)
|
||||||
|
|
||||||
courses = []
|
courses = []
|
||||||
while not eof():
|
while True:
|
||||||
|
skip_whitespace()
|
||||||
|
if eof():
|
||||||
|
break
|
||||||
|
|
||||||
name = read_field()
|
name = read_field()
|
||||||
match(';')
|
match(';')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue