Use ssl.PROTOCOL_TLS_{CLIENT,SERVER} and
SSLContext.{min,max}imum_version when supported (3.7+).
And, catch deprecation warnings when the user asks for deprecated TLS
versions (1.0 and 1.1).
Use ssl.PROTOCOL_TLS_{CLIENT,SERVER} and
SSLContext.{min,max}imum_version when supported (3.7+).
And, catch deprecation warnings when the user asks for deprecated TLS
versions (1.0 and 1.1).
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
mercurial/sslutil.py | ||
---|---|---|
328 | This is the exact same error message that's already there for the python < 3.7 case (in commonssloptions), so any improvement on that feels like it belongs in a different patch. |
I still prefer giving a real error message in supposed unreachable conditions in case they become reachable some ways down the road