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).
No Linters Available |
No Unit Test Coverage |
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. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/sslutil.py (127 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
050329cb6c7b | 1c83be93e634 | Julien Cristau | sslutil: avoid deprecation warnings from python 3.10's ssl module (Show More…) | Apr 9 2022, 8:15 AM |
I still prefer giving a real error message in supposed unreachable conditions in case they become reachable some ways down the road