pylint: Disable non-callable in SslError.

This wasn't hashable (and thus __hash__ wasn't callable) with Qt < 5.4.
This commit is contained in:
Florian Bruhin 2015-12-01 07:50:08 +01:00
parent 9cce8fe825
commit 8be04e4f6c

View File

@ -57,7 +57,7 @@ class SslError(QSslError):
def __hash__(self):
try:
# Qt >= 5.4
return super().__hash__()
return super().__hash__() # pylint: disable=not-callable
except TypeError:
return hash((self.certificate().toDer(), self.error()))