From 2af31a989c91caee107eacbeac24a272ef98feb7 Mon Sep 17 00:00:00 2001 From: Nathan Hoos <128712250+unaidedelf8777@users.noreply.github.com> Date: Sat, 21 Oct 2023 20:08:36 +0000 Subject: [PATCH] fix html interpreter so that we can treat it like a subprocess code interpreter, though it isnt. this is for simplicity. --- interpreter/code_interpreters/languages/html.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/interpreter/code_interpreters/languages/html.py b/interpreter/code_interpreters/languages/html.py index 3be7cbcf40..3b39345a03 100644 --- a/interpreter/code_interpreters/languages/html.py +++ b/interpreter/code_interpreters/languages/html.py @@ -7,9 +7,8 @@ class HTML(BaseCodeInterpreter): file_extension = "html" proper_name = "HTML" - def __init__(self, **kwargs): - super().__init__(**kwargs) # include kwargs though they dont do anything in this case. - # This is just so we dont need more logic in the create interpreter function + def __init__(self, **kwargs): ## accept the kwargs though we dont use them, since its easier this way. + super().__init__() def run(self, code): # Create a temporary HTML file with the content