This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ajaksu2
Recipients ajaksu2, docs@python, vivekvashist
Date 2021-12-19.14:23:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639923821.12.0.281876499416.issue46127@roundup.psfhosted.org>
In-reply-to
Content
That happens because EncodingWarning isn't highlighted as an Exception by Pygments[0]. The doc page gets its exceptions diagram by:
".. literalinclude:: ../../Lib/test/exception_hierarchy.txt"
and all other entries are recognized by Pygments, so we get the "ne" class for them.

A PR for Pygments adding EncodingWarning could be interesting, but I'm not sure the doc build process would pick it up and fix the 3.10 docs issue.

For 3.11, the diagram drawing was changed so no highlighting happens anymore, which fixes the issue for us in the long run.

[0] https://github.com/pygments/pygments/blob/8630e033313647d9579e314f3e8e2882f4558933/pygments/lexers/python.py#L225
History
Date User Action Args
2021-12-19 14:23:41ajaksu2setrecipients: + ajaksu2, docs@python, vivekvashist
2021-12-19 14:23:41ajaksu2setmessageid: <1639923821.12.0.281876499416.issue46127@roundup.psfhosted.org>
2021-12-19 14:23:41ajaksu2linkissue46127 messages
2021-12-19 14:23:40ajaksu2create