From 05f3809d018d65f587d976b1c58e2361b1f476f6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 5 Sep 2014 06:57:02 +0200 Subject: [PATCH] Fix lint --- qutebrowser/commands/argparser.py | 6 ++++++ qutebrowser/utils/debug.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/qutebrowser/commands/argparser.py b/qutebrowser/commands/argparser.py index ac7799481..220c8be12 100644 --- a/qutebrowser/commands/argparser.py +++ b/qutebrowser/commands/argparser.py @@ -47,6 +47,12 @@ class ArgumentParserExit(Exception): class HelpAction(argparse.Action): + """Argparse action to open the help page in the browser. + + This is horrible encapsulation, but I can't think of a good way to do this + better... + """ + def __call__(self, parser, _namespace, _values, _option_string=None): QCoreApplication.instance().mainwindow.tabs.tabopen( QUrl('qute:help/commands.html#{}'.format(parser.name))) diff --git a/qutebrowser/utils/debug.py b/qutebrowser/utils/debug.py index db0f6d323..202d41e84 100644 --- a/qutebrowser/utils/debug.py +++ b/qutebrowser/utils/debug.py @@ -23,7 +23,7 @@ import re import sys import functools -from PyQt5.QtCore import QEvent, QCoreApplication +from PyQt5.QtCore import QEvent from qutebrowser.utils import log, utils