Fix lint
This commit is contained in:
parent
0a094c6e58
commit
05f3809d01
@ -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)))
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user