01-arcadia.patch 972 B

12345678910111213141516171819
  1. --- contrib/python/requests/py3/requests/adapters.py (index)
  2. +++ contrib/python/requests/py3/requests/adapters.py (working tree)
  3. @@ -259,1 +259,1 @@ class HTTPAdapter(BaseAdapter):
  4. - if not os.path.exists(cert_loc):
  5. + if isinstance(cert_loc, str) and not os.path.exists(cert_loc):
  6. @@ -267,1 +267,1 @@ class HTTPAdapter(BaseAdapter):
  7. - if not os.path.isdir(cert_loc):
  8. + if not isinstance(cert_loc, str) or not os.path.isdir(cert_loc):
  9. --- contrib/python/requests/py3/requests/utils.py (index)
  10. +++ contrib/python/requests/py3/requests/utils.py (working tree)
  11. @@ -260,7 +260,7 @@ def extract_zipped_paths(path):
  12. archive with the location of an extracted copy of the target, or else
  13. just return the provided path unchanged.
  14. """
  15. - if os.path.exists(path):
  16. + if callable(path) or os.path.exists(path):
  17. # this is already a valid path, no need to do anything further
  18. return path