From 55e6421b012c3ad6ef97e5c632506fdc445d6067 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 7 Jun 2024 10:46:02 +0200 Subject: improve variable name and remove trailing whitespace --- quiz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quiz.py b/quiz.py index a9224b2..a0d83ac 100755 --- a/quiz.py +++ b/quiz.py @@ -73,7 +73,7 @@ def exclude_questions(questions: list[Path], """exclude all paths in excludes_file from the questions""" with open(excludes_file_path, 'r', encoding='utf-8') as excludes_file: - excludes = [l[:-1] for l in excludes_file.readlines()] + excludes = [line[:-1] for line in excludes_file.readlines()] return [q for q in questions if q.name not in excludes] @@ -115,7 +115,7 @@ def load_solutions(question_dirs: list[Path], solutions must be either in a solutions file per question directory or in a single solutions file. - Solution files must be toml or csv files. + Solution files must be toml or csv files. Nested tables can be selected using the selector. """ solutions = {} -- cgit v1.2.3