Skip to content

Commit

Permalink
fixing typos in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhs04001 committed Sep 8, 2021
1 parent 8bd96e3 commit d299b60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cleanup-roster.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,17 @@ def write_csv(file, student_list, fields):

# print(line)

# now we check if a line that starts with "<td" and has a "</td>"
# now we check if the line starts with "<td" and has a "</td>"
m = re.match(r'<td[^>]*>(.*)</td>', line)
if m:
if student is None:
student = Student()
student.add_field(m.group(1))
previous = ''
else:
# if there is need more lines
# if the line does not have the ending tag, more lines are needed
previous = line

except FileNotFoundError as e:
print(e)
exit(1)
Expand Down

0 comments on commit d299b60

Please sign in to comment.