summaryrefslogtreecommitdiff
path: root/paramiko/ed25519key.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-05-26 21:28:43 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2017-06-03 02:02:46 -0400
commit419d6182d3a6986291df8a7c9b7ecc213d19209c (patch)
treeb91b9354b7e298887875c82f23559cfde43a08e2 /paramiko/ed25519key.py
parent8d4ae13a5762d86ff590f9b4fc70619a958c087e (diff)
downloadparamiko-419d6182d3a6986291df8a7c9b7ecc213d19209c.tar.gz
this isnt bytes
Diffstat (limited to 'paramiko/ed25519key.py')
-rw-r--r--paramiko/ed25519key.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ed25519key.py b/paramiko/ed25519key.py
index e76a850e..d336457b 100644
--- a/paramiko/ed25519key.py
+++ b/paramiko/ed25519key.py
@@ -53,7 +53,7 @@ class Ed25519Key(PKey):
raise SSHException('Invalid key')
verifying_key = nacl.signing.VerifyKey(msg.get_bytes(32))
elif filename is not None:
- with open(filename, "rb") as f:
+ with open(filename, "r") as f:
data = self._read_private_key("OPENSSH", f)
signing_key = self._parse_signing_key_data(data, password)