fix comment
This commit is contained in:
parent
c301076e60
commit
4342a8e34b
@ -1,5 +1,7 @@
|
||||
import ast
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import io
|
||||
from pyflakes.api import check # For linting Code
|
||||
from pyflakes.reporter import Reporter # For linting Code
|
||||
@ -233,7 +235,8 @@ def run_python_sandboxed(code: str) -> str:
|
||||
|
||||
try:
|
||||
result = subprocess.run(
|
||||
["python", "-c", code],
|
||||
[sys.executable, "-c", code],
|
||||
stdin=subprocess.DEVNULL,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=EXEC_TIMEOUT)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user