'import StringIO' -> 'import io' in modules/eval_python.py
This commit is contained in:
parent
f08624ddbd
commit
ecb2b1331a
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue