diff --git a/.pylintrc b/.pylintrc index 984b56b27..3ba0c1275 100644 --- a/.pylintrc +++ b/.pylintrc @@ -6,23 +6,16 @@ extension-pkg-whitelist=PyQt5,sip [MESSAGES CONTROL] disable=no-self-use, - super-on-old-class, - old-style-class, - abstract-class-little-used, bad-builtin, - star-args, fixme, global-statement, - no-init, locally-disabled, too-many-ancestors, too-few-public-methods, too-many-public-methods, cyclic-import, - bad-option-value, bad-continuation, too-many-instance-attributes, - unnecessary-lambda, blacklisted-name, too-many-lines, logging-format-interpolation, diff --git a/qutebrowser/browser/network/networkreply.py b/qutebrowser/browser/network/networkreply.py index 9a4d7f012..82e7464ab 100644 --- a/qutebrowser/browser/network/networkreply.py +++ b/qutebrowser/browser/network/networkreply.py @@ -54,6 +54,7 @@ class FixedDataNetworkReply(QNetworkReply): self.setAttribute(QNetworkRequest.HttpReasonPhraseAttribute, 'OK') # For some reason, a segfault will be triggered if these lambdas aren't # there. + # pylint: disable=unnecessary-lambda QTimer.singleShot(0, lambda: self.metaDataChanged.emit()) QTimer.singleShot(0, lambda: self.readyRead.emit()) QTimer.singleShot(0, lambda: self.finished.emit()) @@ -112,6 +113,7 @@ class ErrorNetworkReply(QNetworkReply): self.setError(error, errorstring) # For some reason, a segfault will be triggered if these lambdas aren't # there. + # pylint: disable=unnecessary-lambda QTimer.singleShot(0, lambda: self.error.emit(error)) QTimer.singleShot(0, lambda: self.finished.emit())