[docutils:bugs] #463 Bug in nodes.py warnings
"Günter Milde" via Docutils-develop <[email protected]>
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | </p/docutils/bugs/463/96a5f896e54d1b2fa04d37edd5c2f19b050e3cc8.bugs@docutils.p.sourceforge.net> |
- **status**: open --> open-fixed
- **Comment**:
Fixed in [r9310]. Thank you for the report and sorry for the breaks.
As a future-proof workaround, you may consider heading the tip in the DeprecationMessage
and set the class name directly instead of via the deprecated node.set_class() method.
---
** [bugs:#463] Bug in nodes.py warnings**
**Status:** open-fixed
**Created:** Thu Dec 08, 2022 01:41 PM UTC by Julianus Pfeuffer
**Last Updated:** Thu Dec 08, 2022 01:41 PM UTC
**Owner:** nobody
Hi!
I think https://sourceforge.net/p/docutils/code/8949/
introduced a bug in https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/nodes.py#l1071
Not sure if you can split the string with a comma there.
It breaks a lot of code.
The error is:
~~~
Exception occurred:
File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/docutils/nodes.py", line 1069, in set_class
warnings.warn('docutils.nodes.Element.set_class() is deprecated; '
TypeError: argument for warn() given by name ('stacklevel') and position (3)
~~~
---
Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.