diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-09-05 20:45:09 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-09-05 20:45:09 -0700 |
commit | ff419627b3676a598d10cd581282d21ec33136bb (patch) | |
tree | 381be7b95467022f430f0875cb581d7b90212784 | |
parent | 5c81c60090b991f7fc4c87c850460a4adc48986e (diff) |
Fix a Python 3 encoding dealie
-rw-r--r-- | tests/test_client.py | 2 |
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): |