diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-05-26 21:28:43 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2017-06-03 02:02:46 -0400 |
commit | 419d6182d3a6986291df8a7c9b7ecc213d19209c (patch) | |
tree | b91b9354b7e298887875c82f23559cfde43a08e2 | |
parent | 8d4ae13a5762d86ff590f9b4fc70619a958c087e (diff) |
this isnt bytes
-rw-r--r-- | paramiko/ed25519key.py | 2 |
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) |