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/util.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/util.py')
-rw-r--r-- | paramiko/util.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/paramiko/util.py b/paramiko/util.py index d0d2c0de..cf90033c 100644 --- a/paramiko/util.py +++ b/paramiko/util.py @@ -16,14 +16,19 @@ # along with Paramiko; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. -from __future__ import generators - """ Useful functions used by the rest of paramiko. """ -import sys, struct, traceback, threading -from common import * +from __future__ import generators + +import sys +import struct +import traceback +import threading + +from paramiko.common import * + # Change by RogerB - python < 2.3 doesn't have enumerate so we implement it if sys.version_info < (2,3): @@ -36,6 +41,7 @@ if sys.version_info < (2,3): yield (count, item) count += 1 + def inflate_long(s, always_positive=False): "turns a normalized byte string into a long-int (adapted from Crypto.Util.number)" out = 0L |