diff --git a/modules/eval_python.py b/modules/eval_python.py index a8864f83..a5c4de5a 100644 --- a/modules/eval_python.py +++ b/modules/eval_python.py @@ -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: