diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2022-04-25 08:15:42 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2022-04-25 08:15:42 -0400 |
commit | d9eb35c69ab29a1ad7a9e3dd5325d4cab9dd2bc0 (patch) | |
tree | bfa73aede87b442db84627cbe9075d3082a1601f /paramiko/pkey.py | |
parent | 9151b5a5ef6634142cc810193a59630c863549c3 (diff) | |
parent | 47529be4385cffba6851f10e505f5683290d116e (diff) | |
download | paramiko-d9eb35c69ab29a1ad7a9e3dd5325d4cab9dd2bc0.tar.gz |
Merge branch '2.10'
Diffstat (limited to 'paramiko/pkey.py')
-rw-r--r-- | paramiko/pkey.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py index 3c975630..585cb74a 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -140,7 +140,7 @@ class PKey(object): return cmp(self.asbytes(), other.asbytes()) # noqa def __eq__(self, other): - return self._fields == other._fields + return isinstance(other, PKey) and self._fields == other._fields def __hash__(self): return hash(self._fields) |