From 1f4a3f19764bdc7483ae503a946e631681ab3e6e Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Tue, 29 Aug 2006 11:18:36 -0700 Subject: [project @ robey@lag.net-20060829181836-1cd17df7729c4db8] remove usage of has_key, which is dangerous and deprecated --- paramiko/primes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paramiko/primes.py') 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)) -- cgit v1.2.1