summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-12-18 15:25:10 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-12-18 15:25:10 -0800
commit0974458816e272efacac62dcf589d60f367826fe (patch)
treec7bb6d34ea8dc8f27e9afb9172a4e40cff4d122d
parente2f160100b78d35d2133a6eccf376216840041c2 (diff)
py3k fix
-rw-r--r--paramiko/ecdsakey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py
index db64d542..bc76b639 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -248,7 +248,7 @@ class ECDSAKey(PKey):
asn1_key.setComponentByName("privateKey", private_key)
asn1_key.setComponentByName("parameters")
asn1_key.getComponentByName("parameters").setComponentByName("namedCurve", _CURVE_TO_OID[type(key.curve)])
- asn1_key.setComponentByName("publicKey", "'%s'H" % binascii.hexlify(public_key))
+ asn1_key.setComponentByName("publicKey", "'%s'H" % binascii.hexlify(public_key).decode())
return encoder.encode(asn1_key)
def _sigencode(self, r, s):