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

Do not re-assign nodes variable in renderer/sphinxrenderer.py #938

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

Conversation

RaumZeit
Copy link

The nodes variable is a global imported from docutils.
Re-assigning this variable leads to unpredictable behavior. To avoid this, we simply rename all occurrences of variable assignments to nodes_ instead.

The nodes variable is a global imported from docutils. Re-assigning this
variable leads to unpredictabe behavior. To avoid this, we simply rename
all occurrences of variable assignments to nodes_ instead.
@RaumZeit
Copy link
Author

just as a side-note why I'm reporting this: I've been adapting some of the code in the sphinxrenderer.py where I tried using other nodes from docutils. This, however gave me strange errors until I found that under certain circumstances, the imported nodes from docutils were overridden...

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.

None yet

1 participant