Download lib/python3.13/site-packages/dns/_tls_util.py from michaelwaves/vllm-steer-venv: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/datasets/michaelwaves/vllm-steer-venv/resolve/main/lib/python3.13/site-packages/dns/_tls_util.py
- Command line
-
hf download hf://datasets/michaelwaves/vllm-steer-venv/lib/python3.13/site-packages/dns/_tls_util.py
-
curl -L -o _tls_util.py https://huggingface.co/datasets/michaelwaves/vllm-steer-venv/resolve/main/lib/python3.13/site-packages/dns/_tls_util.py
528 Bytes
| # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license | |
| import os | |
| from typing import Tuple | |
| def convert_verify_to_cafile_and_capath( | |
| verify: bool | str, | |
| ) -> Tuple[str | None, str | None]: | |
| cafile: str | None = None | |
| capath: str | None = None | |
| if isinstance(verify, str): | |
| if os.path.isfile(verify): | |
| cafile = verify | |
| elif os.path.isdir(verify): | |
| capath = verify | |
| else: | |
| raise ValueError("invalid verify string") | |
| return cafile, capath | |