Permalink
Browse files

Merge pull request #140 from effigies/patch-2

ENH: Delay import of requests
  • Loading branch information...
yarikoptic committed Nov 28, 2018
2 parents 571fae5 + 8f67c98 commit 36022a96ff8850f13e231c1a8f34e20b5e7621bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 duecredit/io.py
@@ -19,7 +19,6 @@
import copy
from os.path import dirname, exists
import pickle
import requests
import tempfile
from six import PY2, itervalues, iteritems
import warnings
@@ -43,6 +42,7 @@ def get_doi_cache_file(doi):
def import_doi(doi, sleep=0.5, retries=10):
import requests
cached = get_doi_cache_file(doi)
if exists(cached):

0 comments on commit 36022a9

Please sign in to comment.