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 | b04623a3785ad5a87e720d1122e7111e7bd6d331 (patch) | |
| tree | f717ea25caec02b93a3a08e1fafced2169fc0f38 /readers/python | |
| parent | 38ac90c88342dc29180f82967b1f90f3a7dfda48 (diff) | |
| download | docutils-b04623a3785ad5a87e720d1122e7111e7bd6d331.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/docutils@3038 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'readers/python')
| -rw-r--r-- | readers/python/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/readers/python/__init__.py b/readers/python/__init__.py index 22cfe3b8d..ba147a3d5 100644 --- a/readers/python/__init__.py +++ b/readers/python/__init__.py @@ -88,7 +88,7 @@ class DocstringFormattingVisitor(nodes.SparseNodeVisitor): node['docformat'] = docformat parser = self.get_parser(docformat) parser.parse(text, self.document) - for child in self.document.get_children(): + for child in self.document.children: node.append(child) self.document.current_source = self.document.current_line = None del self.document[:] |
