From cd701e95fa86818501c852f2f6a692dc5919c627 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 18 Sep 2017 22:20:28 +0200 Subject: [PATCH] Reintroduce __hash__ for CertificateErrorWrapper --- qutebrowser/browser/webkit/certificateerror.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qutebrowser/browser/webkit/certificateerror.py b/qutebrowser/browser/webkit/certificateerror.py index efc2a9b08..23353f268 100644 --- a/qutebrowser/browser/webkit/certificateerror.py +++ b/qutebrowser/browser/webkit/certificateerror.py @@ -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