diff --git a/qutebrowser/network/schemehandler.py b/qutebrowser/network/schemehandler.py index df4abc1c8..595e44fef 100644 --- a/qutebrowser/network/schemehandler.py +++ b/qutebrowser/network/schemehandler.py @@ -126,11 +126,15 @@ 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 QTimer.singleShot(0, lambda: self.error.emit(error)) QTimer.singleShot(0, lambda: self.finished.emit()) def abort(self): + """Do nothing since it's a fake reply.""" pass def bytesAvailable(self): + """We always have 0 bytes available.""" return 0 diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py index ecbd602b0..09dc62528 100644 --- a/qutebrowser/utils/version.py +++ b/qutebrowser/utils/version.py @@ -206,7 +206,7 @@ def version(): lines += [ '', '{}: {}'.format(platform.python_implementation(), - platform.python_version()), + platform.python_version()), 'Qt: {}, runtime: {}'.format(QT_VERSION_STR, qVersion()), 'PyQt: {}'.format(PYQT_VERSION_STR), ]