summaryrefslogtreecommitdiffstats
path: root/ipapython/ssh.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/ssh.py')
-rw-r--r--ipapython/ssh.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipapython/ssh.py b/ipapython/ssh.py
index c95488928..c8d8306f2 100644
--- a/ipapython/ssh.py
+++ b/ipapython/ssh.py
@@ -28,6 +28,11 @@ import struct
from hashlib import md5, sha1
from hashlib import sha256 #pylint: disable=E0611
+import six
+
+if six.PY3:
+ unicode = str
+
__all__ = ['SSHPublicKey']
OPENSSH_BASE_REGEX = re.compile(r'^[\t ]*(?P<keytype>[^\x00\n\r]+?) [\t ]*(?P<key>[^\x00\n\r]+?)(?:[\t ]+(?P<comment>[^\x00\n\r]*?)[\t ]*)?$')