From 8b347c102416c75c68b458969bc0b37f50452e1f Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 20 Jul 2018 15:19:51 +0300 Subject: [PATCH] Cleaning libxml2 artifact.convert to lxml --- vrtManager/util.py | 8 -------- 1 file changed, 8 deletions(-) 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