Skip to content

Commit 286ccde

Browse files
committed
set version of request to use
1 parent 74f2653 commit 286ccde

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ctdl/ctdl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from urllib.request import urlopen
77
except ImportError:
88
from urllib2 import urlopen
9-
from urllib3.util import Retry
9+
from requests.packages.urllib3.util.retry import Retry
1010
from requests.adapters import HTTPAdapter
1111
from bs4 import BeautifulSoup
1212
from .downloader import download_series, download_parallel

ctdl/downloader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import threading
33
import requests
4-
from urllib3.util import Retry
4+
from requests.packages.urllib3.util.retry import Retry
55
from requests.adapters import HTTPAdapter
66
from tqdm import tqdm, trange
77

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
requests
1+
requests>=2.5.0
22
lxml
33
bs4
44
tqdm

0 commit comments

Comments
 (0)