1
0
mirror of synced 2024-11-24 05:30:11 +01:00

parsers.py: Rename parsed_tja and lines

This commit is contained in:
Viv 2023-07-21 23:17:05 -04:00
parent e756f5c07f
commit 9d0d8b9314

View File

@ -19,12 +19,12 @@ def parse_tja(fname_tja):
except UnicodeDecodeError: except UnicodeDecodeError:
tja_text = open(fname_tja, "r", encoding="shift-jis").read() tja_text = open(fname_tja, "r", encoding="shift-jis").read()
lines = [line for line in tja_text.splitlines() if line.strip() != ''] tja_lines = [line for line in tja_text.splitlines() if line.strip() != '']
parsed_tja = split_tja_lines_into_courses(lines) tja = split_tja_lines_into_courses(tja_lines)
for course in parsed_tja.courses.values(): for course in tja.courses.values():
parse_tja_course_data(course) parse_tja_course_data(course)
return parsed_tja return tja
def split_tja_lines_into_courses(lines): def split_tja_lines_into_courses(lines):