diff options
author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-03-14 16:16:57 +0000 |
---|---|---|
committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-03-14 16:16:57 +0000 |
commit | 43ca6a79125d28fce6c2ab2142f93733319382d4 (patch) | |
tree | ec6ad5e0da88432af7c756a22e700de8137f81aa /docutils/parsers/rst/directives/images.py | |
parent | 4fe2b0fb8aa4609da22988bad7dd418c572386bf (diff) | |
download | docutils-43ca6a79125d28fce6c2ab2142f93733319382d4.tar.gz |
removed redundant get_children();
in case we want to change the behavior later, be can use __getattr__ or a descriptor;
(the list is modified in place anyway, so there'd be not much to change about get_children)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3038 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/parsers/rst/directives/images.py')
-rw-r--r-- | docutils/parsers/rst/directives/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/parsers/rst/directives/images.py b/docutils/parsers/rst/directives/images.py index e47315576..32120cde8 100644 --- a/docutils/parsers/rst/directives/images.py +++ b/docutils/parsers/rst/directives/images.py @@ -92,7 +92,7 @@ def figure(name, arguments, options, content, lineno, first_node = node[0] if isinstance(first_node, nodes.paragraph): caption = nodes.caption(first_node.rawsource, '', - *first_node.get_children()) + *first_node.children) figure_node += caption elif not (isinstance(first_node, nodes.comment) and len(first_node) == 0): |