summaryrefslogtreecommitdiff
path: root/paramiko/ssh_gss.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-09-18 18:25:40 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-09-18 18:25:40 -0700
commitd563ba28291fa1f966353c5ef7e4c32680aa93e8 (patch)
treec54de2551ab73e744be5d2b510460a23f132cdd3 /paramiko/ssh_gss.py
parent18bc966c3d3390d85c194a42be5921516d93e296 (diff)
downloadparamiko-d563ba28291fa1f966353c5ef7e4c32680aa93e8.tar.gz
Document that pyasn1 is required
Diffstat (limited to 'paramiko/ssh_gss.py')
-rw-r--r--paramiko/ssh_gss.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/paramiko/ssh_gss.py b/paramiko/ssh_gss.py
index ebf2cc80..dfc9ddc8 100644
--- a/paramiko/ssh_gss.py
+++ b/paramiko/ssh_gss.py
@@ -39,22 +39,8 @@ import sys
"""
GSS_AUTH_AVAILABLE = True
-try:
- from pyasn1.type.univ import ObjectIdentifier
- from pyasn1.codec.der import encoder, decoder
-except ImportError:
- GSS_AUTH_AVAILABLE = False
- class ObjectIdentifier(object):
- def __init__(self, *args):
- raise NotImplementedError("Module pyasn1 not importable")
-
- class decoder(object):
- def decode(self):
- raise NotImplementedError("Module pyasn1 not importable")
-
- class encoder(object):
- def encode(self):
- raise NotImplementedError("Module pyasn1 not importable")
+from pyasn1.type.univ import ObjectIdentifier
+from pyasn1.codec.der import encoder, decoder
from paramiko.common import MSG_USERAUTH_REQUEST
from paramiko.ssh_exception import SSHException