Update python/ql/test/library-tests/frameworks/stdlib/XPathExecution.py

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2022-03-04 10:56:53 +01:00
committed by GitHub
parent 6946ae931a
commit d0a393e8d1

View File

@@ -9,8 +9,7 @@ root.find(match, namespaces=ns) # $ getXPath=match
root.findall(match, namespaces=ns) # $ getXPath=match
root.findtext(match, default=None, namespaces=ns) # $ getXPath=match
from xml.etree.ElementTree import ElementTree
tree = ElementTree()
tree = ET.ElementTree()
tree.parse("index.xhtml")
tree.find(match, namespaces=ns) # $ getXPath=match