()
| 851 | |
| 852 | @functools.cache |
| 853 | def _get_ssl_context(): |
| 854 | try: |
| 855 | import certifi |
| 856 | except ImportError: |
| 857 | _log.debug("Could not import certifi.") |
| 858 | return None |
| 859 | import ssl |
| 860 | return ssl.create_default_context(cafile=certifi.where()) |
| 861 | |
| 862 | |
| 863 | @contextlib.contextmanager |
no outgoing calls
no test coverage detected
searching dependent graphs…