Skip to content

Commit

Permalink
ENH/BF: no heavy import of downloaders at the top level of interfaces…
Browse files Browse the repository at this point in the history
…/download_url.py

Makes it slower for --help and might result in warnings etc even when --help
  • Loading branch information
yarikoptic committed Dec 19, 2015
1 parent 043b5ef commit 0084ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datalad/interface/download_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from ..dochelpers import exc_str
from ..support.param import Parameter
from ..support.constraints import EnsureStr, EnsureNone
from ..downloaders import Providers

from logging import getLogger
lgr = getLogger('datalad.api.download-url')
Expand Down Expand Up @@ -71,6 +70,9 @@ def __call__(self, urls, path=None, overwrite=False, stop_on_failure=False):
list of str
downloaded successfully files
"""

from ..downloaders import Providers

urls = assure_list_from_str(urls)

if len(urls) > 1:
Expand Down

0 comments on commit 0084ff7

Please sign in to comment.