diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-06-01 13:56:59 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-06-01 13:56:59 -0700 |
commit | f645c57889e5faf20c0849c74e57eb5e626cc67a (patch) | |
tree | d9fa937333dba3ceae15b3b0fbc976cc672a431b | |
parent | f2a46d7cdaed467b7388ace694cc0df45a1ae729 (diff) |
Wasn't technically a bug but flake8 pointed out how dumb it was
-rw-r--r-- | paramiko/hostkeys.py | 4 |
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. |