rabin 4 år sedan
förälder
incheckning
e75285aa45
1 ändrade filer med 1 tillägg och 0 borttagningar
  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))