Skip to content

Commit

Permalink
pylint: completely disable unnecessary-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Jun 17, 2014
1 parent af9e4ae commit 7dfd7d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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_]*$
Expand Down
2 changes: 0 additions & 2 deletions qutebrowser/config/websettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
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
Expand Down
4 changes: 2 additions & 2 deletions qutebrowser/network/schemehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, request, fileData, mimeType, parent=None):
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())
Expand Down Expand Up @@ -127,7 +127,7 @@ def __init__(self, errorstring, error, parent=None):
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())

Expand Down

0 comments on commit 7dfd7d0

Please sign in to comment.