From 6eab0b3b4df096aa6b9421c8fe342078d182c523 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Thu, 13 Oct 2005 18:52:59 +0000 Subject: [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 --- paramiko/util.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'paramiko/util.py') 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 -- cgit v1.2.1