diff options
author | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 12:29:46 +0300 |
---|---|---|
committer | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 13:14:22 +0300 |
commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/requests/py3 | |
parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) | |
download | ydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/requests/py3')
-rw-r--r-- | contrib/python/requests/py3/patches/01-arcadia.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/python/requests/py3/patches/01-arcadia.patch b/contrib/python/requests/py3/patches/01-arcadia.patch new file mode 100644 index 0000000000..30b2617ba9 --- /dev/null +++ b/contrib/python/requests/py3/patches/01-arcadia.patch @@ -0,0 +1,31 @@ +--- 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 +--- 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): + archive with the location of an extracted copy of the target, or else + just return the provided path unchanged. + """ +- if os.path.exists(path): ++ if callable(path) or os.path.exists(path): + # this is already a valid path, no need to do anything further + return path + |