Encode password before it is saved to file as Python 3 input returns a string, not bytes

This commit is contained in:
lerela 2020-04-16 19:11:13 +02:00
parent d3fd1ad9e3
commit cd11167067

View file

@ -411,7 +411,7 @@ class TargetIos(Target):
if save: if save:
with open(password_file, 'wb') as fd: with open(password_file, 'wb') as fd:
fd.write(password) fd.write(password.encode())
def get_target(buildozer): def get_target(buildozer):
return TargetIos(buildozer) return TargetIos(buildozer)