modified as requested
This commit is contained in:
parent
bc9d305354
commit
570f1a849f
@ -1490,7 +1490,6 @@ class CommandDispatcher:
|
||||
@cmdutils.register(instance='command-dispatcher', scope='window')
|
||||
def view_source(self):
|
||||
"""Show the source of the current page in a new tab."""
|
||||
|
||||
tab = self._current_widget()
|
||||
if tab.data.viewing_source:
|
||||
raise cmdexc.CommandError("Already viewing source!")
|
||||
|
@ -499,11 +499,12 @@ def _format_block(filename, what, data):
|
||||
|
||||
def regenerate_manpage(filename):
|
||||
"""Update manpage OPTIONS using an argparse parser."""
|
||||
# pylint: disable=protected-access
|
||||
parser = qutebrowser.get_argparser()
|
||||
groups = []
|
||||
# positionals, optionals and user-defined groups
|
||||
# pylint: disable=protected-access
|
||||
for group in parser._action_groups:
|
||||
# pylint: enable=protected-access
|
||||
groupdata = []
|
||||
groupdata.append('=== {}'.format(group.title))
|
||||
if group.description is not None:
|
||||
@ -513,7 +514,6 @@ def regenerate_manpage(filename):
|
||||
if action_data is not None:
|
||||
groupdata.append(action_data)
|
||||
groups.append('\n'.join(groupdata))
|
||||
# pylint: enable=protected-access
|
||||
options = '\n'.join(groups)
|
||||
# epilog
|
||||
if parser.epilog is not None:
|
||||
|
@ -92,7 +92,6 @@ class Tab(browsertab.AbstractTab):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@pytest.mark.xfail(run=False, reason='Causes segfaults, see #1638')
|
||||
def test_tab(qtbot, view, config_stub, tab_registry, mode_manager):
|
||||
tab_w = Tab(win_id=0, mode_manager=mode_manager)
|
||||
|
@ -94,7 +94,6 @@ def _pac_noexcept_test(call):
|
||||
("known.domain", "'1.2.3.4'"),
|
||||
("bogus.domain.foobar", "null")
|
||||
])
|
||||
|
||||
def test_dnsResolve(monkeypatch, domain, expected):
|
||||
def mock_fromName(host):
|
||||
info = QHostInfo()
|
||||
|
Loading…
Reference in New Issue
Block a user