fix comment
This commit is contained in:
parent
c301076e60
commit
4342a8e34b
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user