Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid docutils.nodes.reprunicode #71

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open

Conversation

2xB
Copy link

@2xB 2xB commented Oct 15, 2024

docutils.nodes.reprunicode was until recently just a subclass of str. It was removed in this commit: https://sourceforge.net/p/docutils/code/9415/ Therefore path = nodes.reprunicode(path) just converted a string to a string and can therefore be removed.

This is an alternative to fixing docutils to an old version (as done in #69).

Related discussion on a similar issue with another Sphinx project: https://github.com/orgs/sphinx-doc/discussions/13020#discussioncomment-10930769

Fixes #68

`docutils.nodes.reprunicode` was until recently just a subclass of `str`. It was removed in this commit: https://sourceforge.net/p/docutils/code/9415/
Therefore `path = nodes.reprunicode(path)` just converted a string to a string and can therefore be removed.

This is an alternative to fixing `docutils` to an old version (as done in CrossNox#69).

Fixes CrossNox#68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docutils 0.21 has removed nodes.reprunicode() and therefore building documentation using m2r2 fails
1 participant