diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-03-03 21:04:12 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-03-03 21:04:12 +0000 |
| commit | ee499b65d596cf3f125b3ea48e4b53cc7c093961 (patch) | |
| tree | 1b471aa5016d428d51097e366478f0f086acb55a /quantumclient | |
| parent | 49982a3aeab3445b2f99bedd21935710e0ddef5a (diff) | |
| parent | 406f1adf45be4e6cc74b9e524c53c8227d34fcd9 (diff) | |
| download | python-neutronclient-ee499b65d596cf3f125b3ea48e4b53cc7c093961.tar.gz | |
Merge "quantumclient.common.serializer module cleanup"
Diffstat (limited to 'quantumclient')
| -rw-r--r-- | quantumclient/common/serializer.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/quantumclient/common/serializer.py b/quantumclient/common/serializer.py index 535171b..5716a0c 100644 --- a/quantumclient/common/serializer.py +++ b/quantumclient/common/serializer.py @@ -336,27 +336,6 @@ class XMLDeserializer(TextDeserializer): child, listnames) return result - def find_first_child_named(self, parent, name): - """Search a nodes children for the first child with a given name""" - for node in parent.childNodes: - if node.nodeName == name: - return node - return None - - def find_children_named(self, parent, name): - """Return all of a nodes children who have the given name""" - for node in parent.childNodes: - if node.nodeName == name: - yield node - - def extract_text(self, node): - """Get the text field contained by the given node""" - if len(node.childNodes) == 1: - child = node.childNodes[0] - if child.nodeType == child.TEXT_NODE: - return child.nodeValue - return "" - def default(self, datastring): return {'body': self._from_xml(datastring)} |
