'import StringIO' -> 'import io' in modules/eval_python.py

This commit is contained in:
jesopo 2018-10-17 15:06:43 +01:00
parent f08624ddbd
commit ecb2b1331a

View file

@ -2,12 +2,12 @@ import html, socket
from src import ModuleManager, utils
EVAL_TEMPLATE = """
import StringIO, sys
import io, sys
compiled = compile(sys.stdin.read(), "code", "single")
old_stdout = sys.stdout
stdout = StringIO.StringIO()
stdout = io.StringIO()
sys.stdout = stdout
try: