This commit is contained in:
Florian Bruhin 2016-11-09 14:29:06 +01:00
parent cf32aac111
commit 1a5e90f652
3 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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))

View File

@ -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