1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-04 12:54:12 +01:00

we were getting a bytes obj

This commit is contained in:
Guido Serra
2019-08-14 18:01:13 +02:00
parent 364db09a6e
commit ffaa780c07

View File

@@ -163,7 +163,7 @@ def Run(cmd, include_stderr=False, return_pipe=False,
if return_pipe: if return_pipe:
return f.stdout return f.stdout
else: else:
return f.communicate()[0] return f.communicate()[0].decode()
def LaunchAndWait(cmd): def LaunchAndWait(cmd):
""" Launches the given program with the given arguments, then blocks. """ Launches the given program with the given arguments, then blocks.