diff options
author | Robey Pointer <robey@lag.net> | 2005-10-13 18:52:59 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2005-10-13 18:52:59 +0000 |
commit | 6eab0b3b4df096aa6b9421c8fe342078d182c523 (patch) | |
tree | a971bd201673ccfaa4f831308945d9dc670a1c40 /paramiko/common.py | |
parent | 8bb5e65499661bc1e0556ccfe56c4317d70317cd (diff) | |
download | paramiko-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/common.py')
-rw-r--r-- | paramiko/common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/common.py b/paramiko/common.py index 548013d6..360b804a 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -33,6 +33,7 @@ MSG_CHANNEL_OPEN, MSG_CHANNEL_OPEN_SUCCESS, MSG_CHANNEL_OPEN_FAILURE, \ MSG_CHANNEL_EOF, MSG_CHANNEL_CLOSE, MSG_CHANNEL_REQUEST, \ MSG_CHANNEL_SUCCESS, MSG_CHANNEL_FAILURE = range(90, 101) + # for debugging: MSG_NAMES = { MSG_DISCONNECT: 'disconnect', @@ -70,19 +71,19 @@ MSG_NAMES = { MSG_CHANNEL_FAILURE: 'channel-failure' } -# authentication request return codes: +# authentication request return codes: AUTH_SUCCESSFUL, AUTH_PARTIALLY_SUCCESSFUL, AUTH_FAILED = range(3) # channel request failed reasons: - (OPEN_SUCCEEDED, OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED, OPEN_FAILED_CONNECT_FAILED, OPEN_FAILED_UNKNOWN_CHANNEL_TYPE, OPEN_FAILED_RESOURCE_SHORTAGE) = range(0, 5) + CONNECTION_FAILED_CODE = { 1: 'Administratively prohibited', 2: 'Connect failed', @@ -95,7 +96,6 @@ DISCONNECT_SERVICE_NOT_AVAILABLE, DISCONNECT_AUTH_CANCELLED_BY_USER, \ DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE = 7, 13, 14 - from Crypto.Util.randpool import PersistentRandomPool, RandomPool # keep a crypto-strong PRNG nearby |