Skip to content

Commit

Permalink
Merge pull request #2414 from yarikoptic/opts
Browse files Browse the repository at this point in the history
OPT: delay import of mock, which is heavy (300ms)
  • Loading branch information
yarikoptic committed Apr 12, 2018
2 parents 7a85d47 + 400a85c commit 1f6e742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datalad/plugin/addurls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import re
import string

from mock import patch

from six import string_types
from six.moves.urllib.parse import urlparse

Expand Down Expand Up @@ -570,6 +568,8 @@ def add_urls(rows, ifexists=None, options=None):
def add_meta(rows):
"""Call `git annex metadata --set` using information in `rows`.
"""
from mock import patch

for row in rows:
ds, filename = row["ds"], row["ds_filename"]

Expand Down

0 comments on commit 1f6e742

Please sign in to comment.