summaryrefslogtreecommitdiffhomepage
path: root/tests/test_pkey.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-01 00:37:11 -0700
committerScott Maxwell <scott@codecobblers.com>2013-11-01 00:37:11 -0700
commit8a7267beeb3435fa16c06d22c201650e1e593d89 (patch)
tree0f78c4a7d45f226abcb60cd53907d6be3ecd0656 /tests/test_pkey.py
parentd5ce2b43d602282fe2aa826481759c48d18c9b38 (diff)
Eliminate all uses of b'' syntax to allow for Python 2.5 support
Diffstat (limited to 'tests/test_pkey.py')
-rw-r--r--tests/test_pkey.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index b75f9a1e..00001600 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -23,7 +23,7 @@ Some unit tests for public/private key objects.
from binascii import hexlify, unhexlify
import unittest
from paramiko import RSAKey, DSSKey, ECDSAKey, Message, util
-from paramiko.common import rng, StringIO, byte_chr, b, PY3
+from paramiko.common import rng, StringIO, byte_chr, b, PY3, bytes
from tests.util import test_path
# from openssh's ssh-keygen
@@ -77,10 +77,7 @@ ADRvOqQ5R98Sxst765CAqXmRtz8vwoD96g==
-----END EC PRIVATE KEY-----
"""
-if PY3:
- x1234 = b'\x01\x02\x03\x04'
-else:
- x1234 = '\x01\x02\x03\x04'
+x1234 = unhexlify('01020304')
class KeyTest (unittest.TestCase):