diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-03-13 02:49:51 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-03-13 02:49:51 +0000 |
| commit | a73f41ba87e8d268e5eed1be73835ea6ddac9b7a (patch) | |
| tree | 29782dead5380c7f083bb1bbb01d658323efc029 /docutils | |
| parent | ef0f3418f94c160ad02eb366a932a1dc9bb901d6 (diff) | |
| download | docutils-a73f41ba87e8d268e5eed1be73835ea6ddac9b7a.tar.gz | |
simplified loop logic
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
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 |
