Fix lint
This commit is contained in:
parent
be02bfb37d
commit
b23ddb31c9
@ -1182,15 +1182,14 @@ class CommandDispatcher:
|
|||||||
url = urlutils.qurl_from_user_input(url)
|
url = urlutils.qurl_from_user_input(url)
|
||||||
urlutils.raise_cmdexc_if_invalid(url)
|
urlutils.raise_cmdexc_if_invalid(url)
|
||||||
download_manager.get(url, filename=dest)
|
download_manager.get(url, filename=dest)
|
||||||
|
elif mhtml_:
|
||||||
|
self._download_mhtml(dest)
|
||||||
else:
|
else:
|
||||||
if mhtml_:
|
# FIXME:refactor have a proper API for this
|
||||||
self._download_mhtml(dest)
|
tab = self._current_widget()
|
||||||
else:
|
page = tab._widget.page() # pylint: disable=protected-access
|
||||||
# FIXME:refactor have a proper API for this
|
download_manager.get(self._current_url(), page=page,
|
||||||
# pylint: disable=protected-access
|
filename=dest)
|
||||||
page = self._current_widget()._widget.page()
|
|
||||||
download_manager.get(self._current_url(), page=page,
|
|
||||||
filename=dest)
|
|
||||||
|
|
||||||
def _download_mhtml(self, dest=None):
|
def _download_mhtml(self, dest=None):
|
||||||
"""Download the current page as an MHTML file, including all assets.
|
"""Download the current page as an MHTML file, including all assets.
|
||||||
|
Loading…
Reference in New Issue
Block a user