Fix lint
This commit is contained in:
parent
0a094c6e58
commit
05f3809d01
@ -47,6 +47,12 @@ class ArgumentParserExit(Exception):
|
|||||||
|
|
||||||
class HelpAction(argparse.Action):
|
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):
|
def __call__(self, parser, _namespace, _values, _option_string=None):
|
||||||
QCoreApplication.instance().mainwindow.tabs.tabopen(
|
QCoreApplication.instance().mainwindow.tabs.tabopen(
|
||||||
QUrl('qute:help/commands.html#{}'.format(parser.name)))
|
QUrl('qute:help/commands.html#{}'.format(parser.name)))
|
||||||
|
@ -23,7 +23,7 @@ import re
|
|||||||
import sys
|
import sys
|
||||||
import functools
|
import functools
|
||||||
|
|
||||||
from PyQt5.QtCore import QEvent, QCoreApplication
|
from PyQt5.QtCore import QEvent
|
||||||
|
|
||||||
from qutebrowser.utils import log, utils
|
from qutebrowser.utils import log, utils
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user