mirror of
https://github.com/munki/munki.git
synced 2026-01-05 05:59:57 -06:00
Better unicode text handling for subprocesses
This commit is contained in:
@@ -24,7 +24,7 @@ def launchctld(identifier):
|
||||
cmd = ['/bin/launchctl', 'load', path]
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
output, err = proc.communicate()
|
||||
output = proc.communicate()[0].decode("UTF-8")
|
||||
return output
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user