diff --git a/vrtManager/util.py b/vrtManager/util.py index 86452ed..19e711a 100644 --- a/vrtManager/util.py +++ b/vrtManager/util.py @@ -86,12 +86,9 @@ def get_xml_path(xml, path=None, func=None): of a passed function (receives xpathContext as its only arg) """ doc = None - #ctx = None result = None - #try: doc = etree.fromstring(xml) - #ctx = doc.xpathNewContext() if path: result = get_xpath(doc, path) @@ -100,11 +97,6 @@ def get_xml_path(xml, path=None, func=None): else: raise ValueError("'path' or 'func' is required.") - #finally: - #if doc: - # doc.freeDoc() - #if ctx: - # ctx.xpathFreeContext() return result