diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-02-06 20:34:10 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-02-06 21:15:01 +0300 |
commit | 3803ee3560f8ccaadef4d95facbc4ef37ee69682 (patch) | |
tree | 8b4aa0864c16e0f5c764850309796cd08e4e075b /contrib/python/requests/py3/patches/01-arcadia.patch | |
parent | 586adedacf8519ba3401e4416d07a6042c050ff1 (diff) | |
download | ydb-3803ee3560f8ccaadef4d95facbc4ef37ee69682.tar.gz |
Intermediate changes
commit_hash:24c62f23164ce9c621538d8c097b568a8a9d89fc
Diffstat (limited to 'contrib/python/requests/py3/patches/01-arcadia.patch')
-rw-r--r-- | contrib/python/requests/py3/patches/01-arcadia.patch | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/contrib/python/requests/py3/patches/01-arcadia.patch b/contrib/python/requests/py3/patches/01-arcadia.patch index 30b2617ba9..999df2aaa6 100644 --- a/contrib/python/requests/py3/patches/01-arcadia.patch +++ b/contrib/python/requests/py3/patches/01-arcadia.patch @@ -1,23 +1,11 @@ --- contrib/python/requests/py3/requests/adapters.py (index) +++ contrib/python/requests/py3/requests/adapters.py (working tree) -@@ -259,7 +259,7 @@ class HTTPAdapter(BaseAdapter): - if not cert_loc: - cert_loc = extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH) - -- if not cert_loc or not os.path.exists(cert_loc): -+ if not cert_loc or isinstance(cert_loc, basestring) and not os.path.exists(cert_loc): - raise OSError( - f"Could not find a suitable TLS CA certificate bundle, " - f"invalid path: {cert_loc}" -@@ -267,7 +267,7 @@ class HTTPAdapter(BaseAdapter): - - conn.cert_reqs = "CERT_REQUIRED" - -- if not os.path.isdir(cert_loc): -+ if not isinstance(cert_loc, basestring) or not os.path.isdir(cert_loc): - conn.ca_certs = cert_loc - else: - conn.ca_cert_dir = cert_loc +@@ -259,1 +259,1 @@ class HTTPAdapter(BaseAdapter): +- if not os.path.exists(cert_loc): ++ if isinstance(cert_loc, str) and not os.path.exists(cert_loc): +@@ -267,1 +267,1 @@ class HTTPAdapter(BaseAdapter): +- if not os.path.isdir(cert_loc): ++ if not isinstance(cert_loc, str) or not os.path.isdir(cert_loc): --- contrib/python/requests/py3/requests/utils.py (index) +++ contrib/python/requests/py3/requests/utils.py (working tree) @@ -260,7 +260,7 @@ def extract_zipped_paths(path): |