(tls_version)
| 258 | |
| 259 | |
| 260 | def _parse_tls_version(tls_version): |
| 261 | if tls_version.startswith('SSL'): |
| 262 | raise exceptions.ClientConfigurationError( |
| 263 | f"Unsupported TLS version: {tls_version}" |
| 264 | ) |
| 265 | try: |
| 266 | return ssl_module.TLSVersion[tls_version.replace('.', '_')] |
| 267 | except KeyError: |
| 268 | raise exceptions.ClientConfigurationError( |
| 269 | f"No such TLS version: {tls_version}" |
| 270 | ) |
| 271 | |
| 272 | |
| 273 | def _dot_postgresql_path(filename) -> typing.Optional[pathlib.Path]: |
no outgoing calls
no test coverage detected