[issue44354] ssl deprecation warnings erganomics

2021-06-10 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue44354] ssl deprecation warnings erganomics

2021-06-10 Thread Thomas Grainger
Thomas Grainger added the comment: there should still be a deprecation warning so that 3.12 can raise AttributeError -- ___ Python tracker ___ ___

[issue44354] ssl deprecation warnings erganomics

2021-06-10 Thread Christian Heimes
Christian Heimes added the comment: ctx.options |= ssl.OP_NO_SSLv2 and ctx.options |= ssl.OP_NO_SSLv3 are no-ops and don't modify the value of ctx.options. OP_NO_SSLv2 == 0 and OP_NO_SSLv3 is set by default: >>> ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) >>> ctx.options ssl.OP_NO_COMPRESS

[issue44354] ssl deprecation warnings erganomics

2021-06-10 Thread Thomas Grainger
Thomas Grainger added the comment: it looks like OP_NO_SSLv2 and OP_NO_SSLv3 are not raising a DeprecationWarning ``` python310 -W error Python 3.10.0b2 (default, Jun 2 2021, 00:22:18) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl

[issue44354] ssl deprecation warnings erganomics

2021-06-09 Thread Christian Heimes
Change by Christian Heimes : -- assignee: christian.heimes -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44354] ssl deprecation warnings erganomics

2021-06-09 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes components: +SSL stage: -> needs patch type: -> behavior ___ Python tracker ___ ___

[issue44354] ssl deprecation warnings erganomics

2021-06-08 Thread Thomas Grainger
Thomas Grainger added the comment: the "ssl module:" part of the warning message, I think, is redundant as it should be defined in the https://docs.python.org/3/library/warnings.html#warnings.warn_explicit module kwarg -- ___ Python tracker

[issue44354] ssl deprecation warnings erganomics

2021-06-08 Thread Thomas Grainger
New submission from Thomas Grainger : The ssl module OP_NO_* deprecation warning message is slightly wrong: The error message prints out "is deprecated is deprecated" because of an earlier format template There's a colon in the warning message `ssl module:` and that makes it difficult to use