- **status**: open --> closed-fixed
- **Comment**:
Fixed in r8238. Thanks for reporting and patch.
---
** [bugs:#352] The docstring of Transformer class is wrong**
**Status:** closed-fixed
**Group:** Default
**Created:** Sun Sep 30, 2018 06:05 AM UTC by Takeshi KOMIYA
**Last Updated:** Sun Sep 30, 2018 06:05 AM UTC
**Owner:** nobody
**Attachments:**
- [0001-Fix-docstring-of-Transformer.patch](https://sourceforge.net/p/docutils/bugs/352/attachment/0001-Fix-docstring-of-Transformer.patch) (766 Bytes; application/octet-stream)
It seems the docstring of Transformer class is wrong. The `transforms` is a 4-tuple, not 3-tuple.
```
class Transformer(TransformSpec):
"""
Stores transforms (`Transform` classes) and applies them to document
trees. Also keeps track of components by component type name.
"""
def __init__(self, document):
self.transforms = []
"""List of transforms to apply. Each item is a 3-tuple:
``(priority string, transform class, pending node or None)``."""
...
```
I just made a simple patch for this.
---
Sent from sourceforge.net because doc...@li... 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. |