From 9e5a7682af35271ce29e9570b73a47ac895b0b30 2012-06-12 20:38:02 From: Jörgen Stenarson Date: 2012-06-12 20:38:02 Subject: [PATCH] cast return value to str in getoutput --- diff --git a/IPython/utils/_process_win32.py b/IPython/utils/_process_win32.py index f6a828b..9b1ee5a 100644 --- a/IPython/utils/_process_win32.py +++ b/IPython/utils/_process_win32.py @@ -155,7 +155,7 @@ def getoutput(cmd): if out is None: out = '' - return out + return py3compat.bytes_to_str(out) try: CommandLineToArgvW = ctypes.windll.shell32.CommandLineToArgvW