summaryrefslogtreecommitdiff
path: root/paramiko/ssh_exception.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2005-10-13 18:52:59 +0000
committerRobey Pointer <robey@lag.net>2005-10-13 18:52:59 +0000
commit6eab0b3b4df096aa6b9421c8fe342078d182c523 (patch)
treea971bd201673ccfaa4f831308945d9dc670a1c40 /paramiko/ssh_exception.py
parent8bb5e65499661bc1e0556ccfe56c4317d70317cd (diff)
downloadparamiko-6eab0b3b4df096aa6b9421c8fe342078d182c523.tar.gz
[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-65]
remove unnecessary shebangs, fix import lines to be explicit about imports from within paramiko, and a bit of whitespace cleanup
Diffstat (limited to 'paramiko/ssh_exception.py')
-rw-r--r--paramiko/ssh_exception.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py
index 031623e2..900d4a0b 100644
--- a/paramiko/ssh_exception.py
+++ b/paramiko/ssh_exception.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# Copyright (C) 2003-2005 Robey Pointer <robey@lag.net>
#
# This file is part of paramiko.
@@ -29,12 +27,14 @@ class SSHException (Exception):
"""
pass
+
class PasswordRequiredException (SSHException):
"""
Exception raised when a password is needed to unlock a private key file.
"""
pass
+
class BadAuthenticationType (SSHException):
"""
Exception raised when an authentication type (like password) is used, but
@@ -57,6 +57,7 @@ class BadAuthenticationType (SSHException):
def __str__(self):
return SSHException.__str__(self) + ' (allowed_types=%r)' % self.allowed_types
+
class PartialAuthentication (SSHException):
"""
An internal exception thrown in the case of partial authentication.