Skip to content

Commit 6200350

Browse files
💄 Remove unused burp parser method (#12026)
1 parent ab3e571 commit 6200350

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

dojo/tools/burp/parser.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -108,39 +108,6 @@ def get_items(self, tree, test):
108108
return list(items.values())
109109

110110

111-
def get_attrib_from_subnode(xml_node, subnode_xpath_expr, attrib_name):
112-
"""
113-
Finds a subnode in the item node and the retrieves a value from it
114-
115-
@return An attribute value
116-
"""
117-
global ETREE_VERSION
118-
node = None
119-
120-
if ETREE_VERSION[0] <= 1 and ETREE_VERSION[1] < 3:
121-
match_obj = re.search(
122-
r"([^\@]+?)\[\@([^=]*?)=\'([^\']*?)\'", subnode_xpath_expr,
123-
)
124-
if match_obj is not None:
125-
node_to_find = match_obj.group(1)
126-
xpath_attrib = match_obj.group(2)
127-
xpath_value = match_obj.group(3)
128-
for node_found in xml_node.findall(node_to_find):
129-
if node_found.attrib[xpath_attrib] == xpath_value:
130-
node = node_found
131-
break
132-
else:
133-
node = xml_node.find(subnode_xpath_expr)
134-
135-
else:
136-
node = xml_node.find(subnode_xpath_expr)
137-
138-
if node is not None:
139-
return node.get(attrib_name)
140-
141-
return None
142-
143-
144111
def do_clean(value):
145112
myreturn = ""
146113
if value is not None:

0 commit comments

Comments
 (0)