diff options
author | Robey Pointer <robey@lag.net> | 2006-08-29 11:18:36 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-08-29 11:18:36 -0700 |
commit | 1f4a3f19764bdc7483ae503a946e631681ab3e6e (patch) | |
tree | 2e6b73c1b54e25f21db1dd506dc11c824681a944 /paramiko/primes.py | |
parent | b23079b1350c45e46f77851b86c6b518da857a43 (diff) | |
download | paramiko-1f4a3f19764bdc7483ae503a946e631681ab3e6e.tar.gz |
[project @ robey@lag.net-20060829181836-1cd17df7729c4db8]
remove usage of has_key, which is dangerous and deprecated
Diffstat (limited to 'paramiko/primes.py')
-rw-r--r-- | paramiko/primes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/primes.py b/paramiko/primes.py index f64d11a6..9bcc4dc8 100644 --- a/paramiko/primes.py +++ b/paramiko/primes.py @@ -103,7 +103,7 @@ class ModulusPack (object): if (bl != size) and (bl != size + 1): self.discarded.append((modulus, 'incorrectly reported bit length %d' % size)) return - if not self.pack.has_key(bl): + if bl not in self.pack: self.pack[bl] = [] self.pack[bl].append((generator, modulus)) |