diff options
author | Robey Pointer <robey@lag.net> | 2005-10-31 03:26:10 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2005-10-31 03:26:10 +0000 |
commit | 25d55e6089dabe8ffdbb964d3220a50ab0d36213 (patch) | |
tree | 13020d68348f475b4da8c4966c3c4988e4ef22e0 /paramiko/common.py | |
parent | e57c4baab58e63c11548918801cf4639110029c0 (diff) | |
download | paramiko-25d55e6089dabe8ffdbb964d3220a50ab0d36213.tar.gz |
[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-75]
fix a few windows bugs (and broken str() on SFTPAttributes) reported by grzegorz makarewicz
Diffstat (limited to 'paramiko/common.py')
-rw-r--r-- | paramiko/common.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/paramiko/common.py b/paramiko/common.py index 360b804a..c5999e68 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -105,8 +105,11 @@ except: # the above will likely fail on Windows - fall back to non-persistent random pool randpool = RandomPool() -randpool.randomize() - +try: + randpool.randomize() +except: + # earlier versions of pyCrypto (pre-2.0) don't have randomize() + pass import sys if sys.version_info < (2, 3): |