rabin 5 년 전
부모
커밋
e75285aa45
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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))