summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/hostkeys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py
index b72abe40..18a0d333 100644
--- a/paramiko/hostkeys.py
+++ b/paramiko/hostkeys.py
@@ -251,9 +251,9 @@ class HostKeys (MutableMapping):
if self._hostname_matches(key, entry):
index = i
break
- if i is None:
+ if index is None:
raise KeyError(key)
- self._entries.pop(i)
+ self._entries.pop(index)
def __setitem__(self, hostname, entry):
# don't use this please.