diff --git a/.pylintrc b/.pylintrc index 3809b4507..90611baa9 100644 --- a/.pylintrc +++ b/.pylintrc @@ -18,7 +18,8 @@ disable=no-self-use, cyclic-import, bad-option-value, bad-continuation, - too-many-instance-attributes + too-many-instance-attributes, + unnecessary-lambda [BASIC] module-rgx=[a-z_]*$ diff --git a/qutebrowser/config/websettings.py b/qutebrowser/config/websettings.py index 3e9f486f5..c64f0884b 100644 --- a/qutebrowser/config/websettings.py +++ b/qutebrowser/config/websettings.py @@ -24,8 +24,6 @@ Module attributes: settings: The global QWebSettings singleton instance. """ -# pylint: disable=unnecessary-lambda - from PyQt5.QtCore import pyqtSlot from PyQt5.QtWebKit import QWebSettings from PyQt5.QtCore import QStandardPaths diff --git a/qutebrowser/network/schemehandler.py b/qutebrowser/network/schemehandler.py index 595e44fef..9a5c25a1d 100644 --- a/qutebrowser/network/schemehandler.py +++ b/qutebrowser/network/schemehandler.py @@ -75,7 +75,7 @@ class SpecialNetworkReply(QNetworkReply): self.setAttribute(QNetworkRequest.HttpStatusCodeAttribute, 200) self.setAttribute(QNetworkRequest.HttpReasonPhraseAttribute, 'OK') # For some reason, a segfault will be triggered if these lambdas aren't - # there. pylint: disable=unnecessary-lambda + # there. QTimer.singleShot(0, lambda: self.metaDataChanged.emit()) QTimer.singleShot(0, lambda: self.readyRead.emit()) QTimer.singleShot(0, lambda: self.finished.emit()) @@ -127,7 +127,7 @@ class ErrorNetworkReply(QNetworkReply): super().__init__(parent) self.setError(error, errorstring) # For some reason, a segfault will be triggered if these lambdas aren't - # there. pylint: disable=unnecessary-lambda + # there. QTimer.singleShot(0, lambda: self.error.emit(error)) QTimer.singleShot(0, lambda: self.finished.emit())