diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-12-18 14:37:12 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-12-18 14:37:12 -0800 |
commit | 735be2b02590fe007c505503ad5a6f03a1f99e35 (patch) | |
tree | a1eda050ff0db7d329fd561cf6858ed5b3f7ff30 | |
parent | b764834bdaaa9eeef326d10eac4e85146cf35283 (diff) |
py3k friendly
-rw-r--r-- | paramiko/ecdsakey.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py index 5c40fbf8..295b3566 100644 --- a/paramiko/ecdsakey.py +++ b/paramiko/ecdsakey.py @@ -220,7 +220,7 @@ class ECDSAKey(PKey): -----BEGIN EC PRIVATE KEY----- %s -----END EC PRIVATE KEY----- -""" % "\n".join(textwrap.wrap(base64.b64encode(data), 64)) +""" % "\n".join(textwrap.wrap(base64.b64encode(data).decode(), 64)) key = serialization.load_pem_private_key(s, password=None, backend=default_backend()) self.signing_key = key self.verifying_key = key.public_key() |