Handle cases of course file ending in an empty line / comment

This commit is contained in:
Juhani Haverinen 2017-08-11 16:18:11 +03:00
parent fef2012961
commit a732620888
1 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,11 @@ def parse(text):
length = len(text)
courses = []
while not eof():
while True:
skip_whitespace()
if eof():
break
name = read_field()
match(';')