From c876c3d2446e0d3b0e33978b3643758c48b0ea73 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 1 Nov 2016 19:42:09 +0100 Subject: [PATCH] Fix lint --- .pylintrc | 3 ++- qutebrowser/app.py | 1 - qutebrowser/browser/qtnetworkdownloads.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pylintrc b/.pylintrc index dda9e75ab..3f06facaf 100644 --- a/.pylintrc +++ b/.pylintrc @@ -75,4 +75,5 @@ ignored-modules=pytest # UnsetObject because pylint infers any objreg.get(...) as UnsetObject. ignored-classes=qutebrowser.utils.objreg.UnsetObject, qutebrowser.browser.webkit.webelem.WebElementWrapper, - scripts.dev.check_coverage.MsgType + scripts.dev.check_coverage.MsgType, + qutebrowser.browser.downloads.UnsupportedAttribute diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 39d208ab2..11d7267f9 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -371,7 +371,6 @@ def _init_modules(args, crash_handler): args: The argparse namespace. crash_handler: The CrashHandler instance. """ - # pylint: disable=too-many-statements log.init.debug("Initializing prompts...") prompt.init() diff --git a/qutebrowser/browser/qtnetworkdownloads.py b/qutebrowser/browser/qtnetworkdownloads.py index 6696a06c6..38c6a353d 100644 --- a/qutebrowser/browser/qtnetworkdownloads.py +++ b/qutebrowser/browser/qtnetworkdownloads.py @@ -28,7 +28,7 @@ import collections from PyQt5.QtCore import pyqtSlot, pyqtSignal, QTimer from PyQt5.QtNetwork import QNetworkRequest, QNetworkReply -from qutebrowser.utils import message, usertypes, log, urlutils, objreg +from qutebrowser.utils import message, usertypes, log, urlutils from qutebrowser.browser import downloads from qutebrowser.browser.webkit import http from qutebrowser.browser.webkit.network import networkmanager @@ -68,8 +68,8 @@ class DownloadItem(downloads.AbstractDownloadItem): _reply: The QNetworkReply associated with this download. Signals: - adopt_download: Emitted when a download is retried and should be adopted - by the QNAM if needed.. + adopt_download: Emitted when a download is retried and should be + adopted by the QNAM if needed. arg 0: The new DownloadItem """