summaryrefslogtreecommitdiff
path: root/tests/test_client.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-09-05 20:45:09 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-09-05 20:45:09 -0700
commitff419627b3676a598d10cd581282d21ec33136bb (patch)
tree381be7b95467022f430f0875cb581d7b90212784 /tests/test_client.py
parent5c81c60090b991f7fc4c87c850460a4adc48986e (diff)
downloadparamiko-ff419627b3676a598d10cd581282d21ec33136bb.tar.gz
Fix a Python 3 encoding dealie
Diffstat (limited to 'tests/test_client.py')
-rw-r--r--tests/test_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index 4ba66828..b0ea0dc7 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -44,7 +44,7 @@ def _fingerprint_to_bytes(fingerprint):
Takes ssh-keygen style fingerprint, returns hex-y bytestring.
"""
encoded = b(''.join([r'\x{0}'.format(x) for x in fingerprint.split(':')]))
- return encoded.decode('string-escape')
+ return encoded.decode('string-escape' if PY2 else 'unicode_escape')
class NullServer (paramiko.ServerInterface):