[issue40798] The deprecated-removed Sphinx extension need to change the error message based on the Python version

Rémi Lapeyre report at bugs.python.org
Wed May 27 17:56:58 EDT 2020


New submission from Rémi Lapeyre <remi.lapeyre at henki.fr>:

The new deprecated-removed extension in the documentation always produces text like this:

   Deprecated since version 3.4, will be removed in version 3.8: MD5 as implicit default digest

This message should be used in the documentation of 3.4 to 3.7 and then it should produce:

   Deprecated since version 3.4, removed in version 3.8: MD5 as implicit default digest

I'm not sure if Sphinx knows which Python version it is building the documentation for.

This is the only instance were this is used with a version less than 3.9 so all other messages are currently correct.

I think a new contributor should be able to fix this.

----------
assignee: docs at python
components: Documentation
messages: 370141
nosy: docs at python, remi.lapeyre
priority: normal
severity: normal
status: open
title: The deprecated-removed Sphinx extension need to change the error message based on the Python version
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40798>
_______________________________________


More information about the Python-bugs-list mailing list