rabin 4 years ago
parent
commit
e75285aa45
1 changed files with 1 additions and 0 deletions
  1. 1 0
      demeter/core.py

+ 1 - 0
demeter/core.py

@@ -394,6 +394,7 @@ class Demeter(object):
 	@classmethod
 	def curl(self, url = '', param={}, method = 'get', timeout=5, max=2):
 		import requests
+		from requests.adapters import HTTPAdapter
 		try:
 			s = requests.Session()
 			s.mount('http://', HTTPAdapter(max_retries=max))