mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-22 10:20:59 +00:00
Fix a byte-to-string bug on Python 3.
This commit is contained in:
parent
1257fc18c8
commit
1c6a324a92
@ -532,7 +532,8 @@ def generate_ssh_key(path):
|
|||||||
key = RSAKey.generate(2048)
|
key = RSAKey.generate(2048)
|
||||||
key.write_private_key_file(path)
|
key.write_private_key_file(path)
|
||||||
with open(path + ".pub", "wb") as f:
|
with open(path + ".pub", "wb") as f:
|
||||||
f.write(b"%s %s" % (key.get_name(), key.get_base64()))
|
s = "%s %s" % (key.get_name(), key.get_base64())
|
||||||
|
f.write(s.encode("ascii"))
|
||||||
|
|
||||||
|
|
||||||
def run_in_thread(f):
|
def run_in_thread(f):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user