mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Bump cloudinary from 1.28.1 to 1.29.0 (#1643)
* Bump cloudinary from 1.28.1 to 1.29.0 Bumps [cloudinary](https://github.com/cloudinary/pycloudinary) from 1.28.1 to 1.29.0. - [Release notes](https://github.com/cloudinary/pycloudinary/releases) - [Changelog](https://github.com/cloudinary/pycloudinary/blob/master/CHANGELOG.md) - [Commits](https://github.com/cloudinary/pycloudinary/compare/1.28.1...1.29.0) --- updated-dependencies: - dependency-name: cloudinary dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update cloudinary==1.29.0 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
9c3d700584
commit
44e65952f9
5 changed files with 163 additions and 7 deletions
|
@ -17,11 +17,12 @@ from fractions import Fraction
|
|||
from numbers import Number
|
||||
|
||||
import six.moves.urllib.parse
|
||||
from six import iteritems, string_types
|
||||
from six import iteritems
|
||||
from urllib3 import ProxyManager, PoolManager
|
||||
|
||||
import cloudinary
|
||||
from cloudinary import auth_token
|
||||
from cloudinary.api_client.tcp_keep_alive_manager import TCPKeepAlivePoolManager, TCPKeepAliveProxyManager
|
||||
from cloudinary.compat import PY3, to_bytes, to_bytearray, to_string, string_types, urlparse
|
||||
|
||||
VAR_NAME_RE = r'(\$\([a-zA-Z]\w+\))'
|
||||
|
@ -1509,7 +1510,7 @@ def verify_notification_signature(body, timestamp, signature, valid_for=7200, al
|
|||
|
||||
def get_http_connector(conf, options):
|
||||
"""
|
||||
Used to create http connector, depends on api_proxy configuration parameter
|
||||
Used to create http connector, depends on api_proxy and disable_tcp_keep_alive configuration parameters.
|
||||
|
||||
:param conf: configuration object
|
||||
:param options: additional options
|
||||
|
@ -1517,10 +1518,16 @@ def get_http_connector(conf, options):
|
|||
:return: ProxyManager if api_proxy is set, otherwise PoolManager object
|
||||
"""
|
||||
if conf.api_proxy:
|
||||
return ProxyManager(conf.api_proxy, **options)
|
||||
else:
|
||||
if conf.disable_tcp_keep_alive:
|
||||
return ProxyManager(conf.api_proxy, **options)
|
||||
|
||||
return TCPKeepAliveProxyManager(conf.api_proxy, **options)
|
||||
|
||||
if conf.disable_tcp_keep_alive:
|
||||
return PoolManager(**options)
|
||||
|
||||
return TCPKeepAlivePoolManager(**options)
|
||||
|
||||
|
||||
def encode_list(obj):
|
||||
if isinstance(obj, list):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue