Reintroduce __hash__ for CertificateErrorWrapper

This commit is contained in:
Florian Bruhin 2017-09-18 22:20:28 +02:00
parent 5c0ebc1f94
commit cd701e95fa

View File

@ -37,6 +37,9 @@ class CertificateErrorWrapper(usertypes.AbstractCertificateErrorWrapper):
self, error=debug.qenum_key(QSslError, self._error.error()),
string=str(self))
def __hash__(self):
return hash(self._error)
def __eq__(self, other):
return self._error == other._error # pylint: disable=protected-access