1
0
mirror of synced 2024-11-13 17:10:46 +01:00

parsers.py: Pylint fix

This commit is contained in:
Viv 2023-07-24 03:54:37 +00:00 committed by GitHub
parent e4ed33e584
commit ff385c1102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ def split_tja_lines_into_courses(lines):
# Course-specific header fields
elif name_upper == 'COURSE':
if value not in NORMALIZE_COURSE.keys():
if value not in NORMALIZE_COURSE:
raise ValueError(f"Invalid COURSE value: '{value}'")
current_course = NORMALIZE_COURSE[value]
current_course_cached = current_course