fix comment

This commit is contained in:
Livio Meuli 2026-05-22 14:56:21 +02:00
parent c301076e60
commit 4342a8e34b

View File

@ -1,5 +1,7 @@
import ast import ast
import subprocess import subprocess
import sys
import io import io
from pyflakes.api import check # For linting Code from pyflakes.api import check # For linting Code
from pyflakes.reporter import Reporter # For linting Code from pyflakes.reporter import Reporter # For linting Code
@ -233,7 +235,8 @@ def run_python_sandboxed(code: str) -> str:
try: try:
result = subprocess.run( result = subprocess.run(
["python", "-c", code], [sys.executable, "-c", code],
stdin=subprocess.DEVNULL,
capture_output=True, capture_output=True,
text=True, text=True,
timeout=EXEC_TIMEOUT) timeout=EXEC_TIMEOUT)