Fix lint
This commit is contained in:
parent
1b8a44ac26
commit
3d6d81e1cb
@ -126,11 +126,15 @@ class ErrorNetworkReply(QNetworkReply):
|
|||||||
"""
|
"""
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setError(error, errorstring)
|
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.error.emit(error))
|
||||||
QTimer.singleShot(0, lambda: self.finished.emit())
|
QTimer.singleShot(0, lambda: self.finished.emit())
|
||||||
|
|
||||||
def abort(self):
|
def abort(self):
|
||||||
|
"""Do nothing since it's a fake reply."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def bytesAvailable(self):
|
def bytesAvailable(self):
|
||||||
|
"""We always have 0 bytes available."""
|
||||||
return 0
|
return 0
|
||||||
|
@ -206,7 +206,7 @@ def version():
|
|||||||
lines += [
|
lines += [
|
||||||
'',
|
'',
|
||||||
'{}: {}'.format(platform.python_implementation(),
|
'{}: {}'.format(platform.python_implementation(),
|
||||||
platform.python_version()),
|
platform.python_version()),
|
||||||
'Qt: {}, runtime: {}'.format(QT_VERSION_STR, qVersion()),
|
'Qt: {}, runtime: {}'.format(QT_VERSION_STR, qVersion()),
|
||||||
'PyQt: {}'.format(PYQT_VERSION_STR),
|
'PyQt: {}'.format(PYQT_VERSION_STR),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user