summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-12-18 15:20:07 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-12-18 15:20:07 -0800
commite2f160100b78d35d2133a6eccf376216840041c2 (patch)
tree391d302cadbd8ecc46d5b3160e513b40b9990573
parent6ecf543d5c9c092596d10365505b5f8b3287f6c9 (diff)
This is bytes
-rw-r--r--paramiko/ecdsakey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py
index d26e3e6d..db64d542 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -241,7 +241,7 @@ class ECDSAKey(PKey):
x_str = zero_byte * (key_length - len(x_str)) + x_str
if len(y_str) < key_length:
y_str = zero_byte * (key_length - len(y_str)) + y_str
- public_key = "\x04" + x_str + y_str
+ public_key = b"\x04" + x_str + y_str
asn1_key = _ECPrivateKey()
asn1_key.setComponentByName("version", 1)