Skip to content

Commit 64576f8

Browse files
committed
Corrected string parsing issues
1 parent f390a5c commit 64576f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed/mbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ def pquery(command, output_callback=None, stdin=None, **kwargs):
258258
stdout, _ = proc.communicate(stdin)
259259

260260
if very_verbose:
261-
log(str(stdout).strip()+"\n")
261+
log(stdout.decode("utf-8").strip() + "\n")
262262

263263
if proc.returncode != 0:
264264
raise ProcessException(proc.returncode, command[0], ' '.join(command), getcwd())
265265

266-
return stdout
266+
return stdout.decode("utf-8")
267267

268268
def rmtree_readonly(directory):
269269
if os.path.islink(directory):

0 commit comments

Comments
 (0)