mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-31 03:50:06 -07:00
Updated requests lib.
More code cleanup done.
This commit is contained in:
parent
504ea8ac45
commit
086eaaa516
19 changed files with 347 additions and 123 deletions
|
@ -9,7 +9,6 @@ and maintain connections.
|
|||
"""
|
||||
|
||||
import socket
|
||||
import copy
|
||||
|
||||
from .models import Response
|
||||
from .packages.urllib3.poolmanager import PoolManager, proxy_from_url
|
||||
|
@ -63,7 +62,7 @@ class HTTPAdapter(BaseAdapter):
|
|||
|
||||
Usage::
|
||||
|
||||
>>> import lib.requests
|
||||
>>> import requests
|
||||
>>> s = requests.Session()
|
||||
>>> a = requests.adapters.HTTPAdapter(max_retries=3)
|
||||
>>> s.mount('http://', a)
|
||||
|
@ -391,4 +390,4 @@ class HTTPAdapter(BaseAdapter):
|
|||
if not stream:
|
||||
r.content
|
||||
|
||||
return r
|
||||
return r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue