pylint: completely disable unnecessary-lambda

This commit is contained in:
Florian Bruhin 2014-06-17 07:19:16 +02:00
parent af9e4ae072
commit 7dfd7d018b
3 changed files with 4 additions and 5 deletions

View File

@ -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_]*$

View File

@ -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

View File

@ -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())