[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/515aedb14db4e127ac663d8f5f0bb232626a3e5c.bugs@docutils.p.sourceforge.net>
- **status**: open-fixed --> closed-fixed
- **Comment**:

Fixed in [Docutils 0.20](https://pypi.org/project/docutils/0.20)
Thank you for reporting.



---

**[bugs:#463] Bug in nodes.py warnings**

**Status:** closed-fixed
**Created:** Thu Dec 08, 2022 01:41 PM UTC by Julianus Pfeuffer
**Last Updated:** Mon Dec 19, 2022 12:27 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.