From eeb1c0e21493f34517927d6a247668bf3e7f4277 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 19 Jul 2016 00:11:12 +0100 Subject: [PATCH] Update syscmd.py for python3 --- syscmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syscmd.py b/syscmd.py index 4b4ff28..d7f0840 100644 --- a/syscmd.py +++ b/syscmd.py @@ -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")