diff options
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/nodes.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docutils/nodes.py b/docutils/nodes.py index 727212b1a..f35872a6c 100644 --- a/docutils/nodes.py +++ b/docutils/nodes.py @@ -550,12 +550,10 @@ class Element(Node): if not isinstance(childclass, TupleType): childclass = (childclass,) for index in range(start, min(len(self), end)): - match = 0 for c in childclass: if isinstance(self.children[index], c): - match = 1 break - if not match: + else: return index return None |
