MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / iterate

Function iterate

lib/core/option.py:185–204  ·  view source on GitHub ↗
(node, retVal=None)

Source from the content-addressed store, hash-verified

183 """
184
185 def iterate(node, retVal=None):
186 class DictObject(object):
187 def __init__(self):
188 self.__dict__ = {}
189
190 def __contains__(self, name):
191 return name in self.__dict__
192
193 if retVal is None:
194 retVal = DictObject()
195
196 for child in node.findall("*"):
197 instance = DictObject()
198 retVal.__dict__[child.tag] = instance
199 if child.attrib:
200 instance.__dict__.update(child.attrib)
201 else:
202 iterate(child, instance)
203
204 return retVal
205
206 tree = ElementTree()
207 try:

Callers 1

_loadQueriesFunction · 0.85

Calls 2

DictObjectClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…