Commit 1391e3f1 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Pass password as byte sequence (py3)

parent f4c99ad7
......@@ -1038,7 +1038,7 @@ class Process(object):
cmd = ['sudo', '-S', '-k'] + cmd
proc = sp.Popen(cmd, **kwargs)
proc.stdin.write('{}\n'.format(password))
proc.stdin.write('{}\n'.format(password).encode())
return proc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment