removed function added to branch DDtoNTT in utils/xml.py
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/95f41169 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/95f41169 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/95f41169 Branch: refs/heads/trunk Commit: 95f4116963836e7751dfcf0d2ac16318fdd69b17 Parents: 28b8804 Author: mitch <[email protected]> Authored: Sun Oct 28 23:12:57 2018 -0400 Committer: mitch <[email protected]> Committed: Sun Oct 28 23:12:57 2018 -0400 ---------------------------------------------------------------------- libcloud/utils/xml.py | 14 -------------- 1 file changed, 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/95f41169/libcloud/utils/xml.py ---------------------------------------------------------------------- diff --git a/libcloud/utils/xml.py b/libcloud/utils/xml.py index 3a34d84..55b82a6 100644 --- a/libcloud/utils/xml.py +++ b/libcloud/utils/xml.py @@ -47,17 +47,3 @@ def findattr(element, xpath, namespace=None): def findall(element, xpath, namespace=None): return element.findall(fixxpath(xpath=xpath, namespace=namespace)) - - -def return_all(parent_element): - elem_dict = {} - if parent_element.items(): - elem_dict.update(dict(parent_element.items())) - for element in parent_element: - if element.items(): - elem_dict.update(dict(element.items())) - elif element.text: - elem_dict.update({element.tag.split('}')[1]: element.text}) - else: - elem_dict.update(element.attrib) - return elem_dict
