Update syscmd.py for python3

This commit is contained in:
James Booth
2016-07-19 00:11:12 +01:00
parent 2a20b83f53
commit eeb1c0e214

View File

@@ -24,7 +24,7 @@ def _handle_win_input(win, command):
result = _get_result(command)
split = result.splitlines()
for s in split:
prof.win_show_themed(win, "system", "result", None, s)
prof.win_show_themed(win, "system", "result", None, s.decode("utf-8") )
prof.win_show(win, "")
@@ -48,7 +48,7 @@ def _cmd_system(arg1=None, arg2=None):
prof.cons_alert()
else:
result = _get_result(arg2)
prof.send_line(u'\u000A' + result)
prof.send_line(u'\u000A' + result.decode("utf-8"))
elif arg1 == "exec":
if arg2 == None:
prof.cons_bad_cmd_usage("/system")