Fix Python 3 compat
This commit is contained in:
parent
09a59b5ff0
commit
1236a48a40
@ -75,10 +75,9 @@ def exec_command(capture, *args):
|
|||||||
exception.returncode, command))
|
exception.returncode, command))
|
||||||
|
|
||||||
if opts.verbose and capture:
|
if opts.verbose and capture:
|
||||||
output = output.decode("UTF-8")
|
sys.stdout.write(output.decode("UTF-8"))
|
||||||
sys.stdout.write(output)
|
|
||||||
|
|
||||||
return capture and output
|
return capture and output.decode("UTF-8")
|
||||||
|
|
||||||
def run_command(*args):
|
def run_command(*args):
|
||||||
exec_command(False, *args)
|
exec_command(False, *args)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user