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:
parent
9cce8fe825
commit
8be04e4f6c
@ -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()))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user