Fix lint
This commit is contained in:
parent
cf32aac111
commit
1a5e90f652
@ -28,7 +28,7 @@ import fnmatch
|
||||
|
||||
from qutebrowser.browser import downloads
|
||||
from qutebrowser.config import config
|
||||
from qutebrowser.utils import objreg, standarddir, log, message, usertypes
|
||||
from qutebrowser.utils import objreg, standarddir, log, message
|
||||
from qutebrowser.commands import cmdutils, cmdexc
|
||||
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
"""Download manager."""
|
||||
|
||||
import io
|
||||
import os.path
|
||||
import shutil
|
||||
import functools
|
||||
import collections
|
||||
@ -440,7 +439,7 @@ class DownloadManager(downloads.AbstractDownloadManager):
|
||||
if not suggested_filename:
|
||||
try:
|
||||
suggested_filename = target.suggested_filename()
|
||||
except usertypes.NoFilenameError:
|
||||
except downloads.NoFilenameError:
|
||||
_, suggested_filename = http.parse_content_disposition(reply)
|
||||
log.downloads.debug("fetch: {} -> {}".format(reply.url(),
|
||||
suggested_filename))
|
||||
|
@ -23,7 +23,6 @@ Module attributes:
|
||||
_UNSET: Used as default argument in the constructor so default can be None.
|
||||
"""
|
||||
|
||||
import os.path
|
||||
import operator
|
||||
import collections.abc
|
||||
import enum as pyenum
|
||||
|
Loading…
Reference in New Issue
Block a user