(tls_version)
| 252 | |
| 253 | |
| 254 | def _parse_tls_version(tls_version): |
| 255 | if tls_version.startswith('SSL'): |
| 256 | raise exceptions.ClientConfigurationError( |
| 257 | f"Unsupported TLS version: {tls_version}" |
| 258 | ) |
| 259 | try: |
| 260 | return ssl_module.TLSVersion[tls_version.replace('.', '_')] |
| 261 | except KeyError: |
| 262 | raise exceptions.ClientConfigurationError( |
| 263 | f"No such TLS version: {tls_version}" |
| 264 | ) |
| 265 | |
| 266 | |
| 267 | def _dot_postgresql_path(filename) -> typing.Optional[pathlib.Path]: |
no outgoing calls
no test coverage detected
searching dependent graphs…