From 71a2bbc60ae8f55a01f46fc000f55fce88f9c7ab Mon Sep 17 00:00:00 2001 From: Gerwin Klein Date: Fri, 25 Apr 2025 13:42:22 +1000 Subject: [PATCH 1/2] template.py: remove unused imports Signed-off-by: Gerwin Klein --- template.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/template.py b/template.py index 2df060ea..ee8aa8ef 100755 --- a/template.py +++ b/template.py @@ -10,14 +10,12 @@ from jinja2 import Environment, FileSystemLoader import argparse import sys -import sh -import tools from tools import tutorialstate, context -from yaml import load, dump +from yaml import load try: - from yaml import CLoader as Loader, CDumper as Dumper + from yaml import CLoader as Loader except ImportError: - from yaml import Loader, Dumper + from yaml import Loader from io import StringIO From 0b79b29c24a3e4713d72ec964d2d9b2f8dfb89c1 Mon Sep 17 00:00:00 2001 From: Gerwin Klein Date: Fri, 25 Apr 2025 13:42:42 +1000 Subject: [PATCH 2/2] context.py: remove debug output Signed-off-by: Gerwin Klein --- tools/context.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/context.py b/tools/context.py index 31a2b341..02e9d474 100644 --- a/tools/context.py +++ b/tools/context.py @@ -149,7 +149,6 @@ def ELF(context, content, name, passive=False): stash.current_cspace.alloc(tcb) stash.finish_elf(name, "%s.c" % name) - print("end") return content @@ -248,7 +247,6 @@ def include_task_type_append(context, task_names): i = i[0] task = state.get_task(i) if task <= state.current_task: - print(task.name) content = state.print_task(task, subtask) if not content: if state.solution: