diff options
author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-17 07:44:12 +0000 |
---|---|---|
committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-17 07:44:12 +0000 |
commit | 4c19396aab9c774c0cccffbb83fc50f65977d02a (patch) | |
tree | 4446bd9fb6cbacc7b6a9ff117d8511a2e5af8cd8 | |
parent | fcca4a738d15a17740495852cb3c432e64206d80 (diff) | |
download | docutils-4c19396aab9c774c0cccffbb83fc50f65977d02a.tar.gz |
Added ``Element.__contains__`` method, for the in-operator.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils/docutils@5601 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r-- | nodes.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -550,6 +550,9 @@ class Element(Node): has_key = hasattr + # support operator in + __contains__ = hasattr + def append(self, item): self.setup_child(item) self.children.append(item) |